Wells Fargo had another surprise for investors in the form of its biggest legal burden. The $ 3.25 trillion fourth-quarter hit to earnings after the lender took a $ 1 trillion charge in the third quarter to a potential settlement with regulators over pre-crisis mortgage sales. All the litigation costs for the firm’s expense ratio for 2017 to the highest level in more than 20 years. This latest issue is one of a variety of matters, including mortgage-related regulatory investigations, sales practices, and other consumer-related matters, “the San Francisco-based lender said in a statement Friday. Wells Fargo has been struggling to cut costs and close 5,900 branches this year as part of a plan to reduce its network to 5,000 by the end of 2020. two years, efforts that analysts expect to bring back their expense ratio in line with its long-term goal. Wells Fargo has endured a rash of consumer scandals since regulators end up the bank in September 2016 for opening up of potentially unauthorized customer accounts. Fresh issues arose last year over the years of forced insurance. The fake accounts were again a flash point in August, when it revised the number of potential customers to 3.5 million. The consumer has a higher rate of return and a deterioration of the bank’s efficiency ratio, a key measure of profitability. Chief Executive Officer Tim Sloan distanced the bank from its historical goal of 55 percent to 59 percent in May, setting a new target of 60 percent to 61 percent, excluding litigation costs. Sloan called Wells Fargo’s 62.7 percent “completely unacceptable.” The ratio was 76.2 percent in the fourth quarter compared to 65.5 percent in the third quarter. Without the litigation charge, the fourth quarter ratio would be 61.5 percent. The lender had positive news on the front, as expected. As Wells Fargo said it has a $ 3.35 billion interest rate. Its effective tax rate in 2018 will probably be about 19 percent, compared to 31 percent in both 2016 and 2015, the bank said. Wells Fargo’s shares were down 1 percent at $ 62.60 at 9:38 am in New York. Here’s a summary of Wells Fargo’s fourth-quarter results: Net income advanced 17 percent to $ 6.15 billion, or $ 1.16 to share, from $ 5.27 billion, or 96 cents, to year earlier. Analysts called for an adjusted earnings per share of $ 1.02. – Profit in the community banking division, with 34 percent to $ 3.67 billion, mainly because of benefits from tax changes. Mortgage-banking fees declined 35 percent to $ 928 million from $ 1.4 billion a year earlier. Residential originations were $ 53 billion from $ 59 billion in the previous three-month period. Analysts led by Keefe, Bruyette & Woods’ Brian Kleinhanzl had expected $ 928 million in fees. – Auto-loan originations, which the bank would have dropped, declined from $ 4.3 billion a year ago. – Earnings from the wholesale division, which includes the investment and corporate banks, fell to $ 2.15 billion, compared with $ 2.19 billion a year earlier. – Loan-loss provisions fell to $ 651 million, lower than the $ 737 million predicted analysts. The provision in the third quarter was $ 717 million and $ 805 million in the fourth quarter of 2016. – Net interest margin dropped unexpectedly 2 basis points to 2.84 percent. The 16 analysts surveyed by Bloomberg had expected to increase 1 basis point to 2.87 percent.