<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>                               JUN-30-2000
<EXCHANGE-RATE>                                      1
<CASH>                                       2,323,153
<INT-BEARING-DEPOSITS>                               0
<FED-FUNDS-SOLD>                             9,950,000
<TRADING-ASSETS>                                     0
<INVESTMENTS-HELD-FOR-SALE>                  6,982,612
<INVESTMENTS-CARRYING>                       8,661,571
<INVESTMENTS-MARKET>                         8,661,571
<LOANS>                                     46,245,397
<ALLOWANCE>                                    849,651
<TOTAL-ASSETS>                              68,863,966
<DEPOSITS>                                  60,844,844
<SHORT-TERM>                                         0
<LIABILITIES-OTHER>                            419,172
<LONG-TERM>                                          0
<PREFERRED-MANDATORY>                                0
<PREFERRED>                                          0
<COMMON>                                     1,001,499
<OTHER-SE>                                   6,598,451
<TOTAL-LIABILITIES-AND-EQUITY>              68,863,966
<INTEREST-LOAN>                              1,937,208
<INTEREST-INVEST>                              463,751
<INTEREST-OTHER>                                     0
<INTEREST-TOTAL>                             2,400,959
<INTEREST-DEPOSIT>                             845,758
<INTEREST-EXPENSE>                                   0
<INTEREST-INCOME-NET>                        1,555,201
<LOAN-LOSSES>                                   66,000
<SECURITIES-GAINS>                                   0
<EXPENSE-OTHER>                              1,264,563
<INCOME-PRETAX>                                341,063
<INCOME-PRE-EXTRAORDINARY>                     341,063
<EXTRAORDINARY>                                      0
<CHANGES>                                            0
<NET-INCOME>                                   341,063
<EPS-BASIC>                                       0.34
<EPS-DILUTED>                                     0.34
<YIELD-ACTUAL>                                    8.30
<LOANS-NON>                                    139,538
<LOANS-PAST>                                         0
<LOANS-TROUBLED>                                     0
<LOANS-PROBLEM>                                820,166
<ALLOWANCE-OPEN>                               783,143
<CHARGE-OFFS>                                        0
<RECOVERIES>                                       509
<ALLOWANCE-CLOSE>                              849,652
<ALLOWANCE-DOMESTIC>                           849,652
<ALLOWANCE-FOREIGN>                                  0
<ALLOWANCE-UNALLOCATED>                         59,614


</TABLE>