<TABLE> <S> <C>

<PAGE>
<ARTICLE> 9
<LEGEND>
This schedule contains summary financial information extracted from the Form
10-QSB and is qualified in its entirety by reference to such financial
statements.
</LEGEND>
<CIK> 0000714286
<NAME> UNITED FINANCIAL BANKING COMPANIES, INC.
<CURRENCY> U.S. DOLLARS

<S>                             <C>
<PERIOD-TYPE>                   3-MOS
<FISCAL-YEAR-END>                          DEC-31-2000
<PERIOD-START>                             JAN-01-2000
<PERIOD-END>                               MAR-31-2000
<EXCHANGE-RATE>                                      1
<CASH>                                       2,084,709
<INT-BEARING-DEPOSITS>                               0
<FED-FUNDS-SOLD>                             5,263,000
<TRADING-ASSETS>                                     0
<INVESTMENTS-HELD-FOR-SALE>                  7,541,453
<INVESTMENTS-CARRYING>                       8,447,546
<INVESTMENTS-MARKET>                         8,447,546
<LOANS>                                     43,332,526
<ALLOWANCE>                                    816,526
<TOTAL-ASSETS>                              60,857,326
<DEPOSITS>                                  53,119,081
<SHORT-TERM>                                         0
<LIABILITIES-OTHER>                            356,296
<LONG-TERM>                                          0
<PREFERRED-MANDATORY>                                0
<PREFERRED>                                          0
<COMMON>                                     1,001,499
<OTHER-SE>                                   6,380,450
<TOTAL-LIABILITIES-AND-EQUITY>              60,857,326
<INTEREST-LOAN>                                935,925
<INTEREST-INVEST>                              194,134
<INTEREST-OTHER>                                     0
<INTEREST-TOTAL>                             1,130,059
<INTEREST-DEPOSIT>                             398,610
<INTEREST-EXPENSE>                                   0
<INTEREST-INCOME-NET>                          731,449
<LOAN-LOSSES>                                   33,000
<SECURITIES-GAINS>                                   0
<EXPENSE-OTHER>                                630,098
<INCOME-PRETAX>                                126,228
<INCOME-PRE-EXTRAORDINARY>                     126,228
<EXTRAORDINARY>                                      0
<CHANGES>                                            0
<NET-INCOME>                                   126,228
<EPS-BASIC>                                       0.13
<EPS-DILUTED>                                     0.12
<YIELD-ACTUAL>                                    8.34
<LOANS-NON>                                    139,689
<LOANS-PAST>                                         0
<LOANS-TROUBLED>                                     0
<LOANS-PROBLEM>                                554,967
<ALLOWANCE-OPEN>                               783,143
<CHARGE-OFFS>                                        0
<RECOVERIES>                                       383
<ALLOWANCE-CLOSE>                              816,526
<ALLOWANCE-DOMESTIC>                           816,526
<ALLOWANCE-FOREIGN>                                  0
<ALLOWANCE-UNALLOCATED>                        575,453


</TABLE>