The Treasury Department expects to lose $29 billion on the federal bailouts stemming from the financial crisis, with most of the losses in its housing finance program and the auto rescue.

In a report released on Tuesday, the administration said it expected a $17 billion loss from its investments in General Motors, Chrysler and the auto finance companies, as well as a $46 billion loss from housing programs like the mortgage modification program known as the Home Affordable Modification Program.

The new figures, which include profits that offset some of the losses, come just as the Obama administration tries to wind down the bailout program known as the Troubled Asset Relief Program, or TARP. Last week, the government announced a plan to exit its investment in the insurer the American International Group.

Treasury officials have declared the bailout a success, emphasizing that much of the program’s money has been returned and that losses are now likely to be less than once expected. The cost, the report says, is far below the $350 billion the Congressional Budget Office once estimated.