Consumer Finance & Retail Banking

Mortgage Loan Sale — Gain on Sale (Servicing Released vs. Servicing Retained)

Recording the gain on sale of mortgage loans to Fannie Mae or Freddie Mac — differentiating between servicing-released (simplest) and servicing-retained sales (where the MSR must be allocated from the total proceeds).

Account NameTypeDebit ($)Credit ($)
Cash / Agency Securities (Proceeds from Mortgage Loan Sale)Asset (+)502,500.00-
Mortgage Loans Held for Sale (Carrying Value at Sale)Asset (-)-485,000.00
Mortgage Servicing Right — MSR (Retained Servicing Value Allocated)Asset (+)7,500.00-
Gain on Sale of Mortgage LoansIncome (+)-25,000.00

💡 Accountant's Note

When a mortgage originator sells a loan to Fannie Mae or Freddie Mac, they receive: (1) the loan purchase price (typically at a premium to par for below-market-rate loans), and (2) if servicing is retained, the right to continue collecting monthly payments and earn a servicing fee (typically 25 bps annually). Under ASC 860-20: when a loan is sold and servicing is retained, the originator must ALLOCATE the total proceeds between the transferred loan and the retained servicing right based on their RELATIVE FAIR VALUES at the transfer date. The MSR (the capitalized value of future servicing income) is recognized as a new intangible asset. The gain = total proceeds − carrying value of loans sold + MSR recognized. For Rocket Mortgage, this gain-on-sale calculation drives tens of billions in annual revenue — and the MSR fair value creates significant ongoing income statement volatility.

Practitioner & Systems Framework

💻 ERP Architecture

Gain on sale accounting is performed at the individual loan level in the secondary market pricing system. The MSR value at sale is determined by the servicing valuation model (typically a third-party model from Bloomberg, Black Knight, or internal actuarial models using prepayment speed assumptions — PSA, CPR). The trade amount and servicing value are tracked in the loan-level secondary marketing system and aggregated to the GL daily. Best execution analysis (servicing released premium vs. retained servicing value) is a critical treasury function — sometimes selling with servicing retained generates more total value than servicing released.

⚠️ Audit Flags

Gain on sale is the primary revenue driver for mortgage banking companies — auditors test: (1) The MSR value at allocation (particularly the prepayment speed assumption — lower CPR = higher MSR value = higher gain on sale), (2) Whether the ASC 860 derecognition criteria are met (the loan must be legally isolated from the seller, the transferee must have unconditional right to pledge/exchange), (3) Whether retained interests in securitizations create on-balance-sheet consolidation requirements. MSR valuation is highly judgmental — independent valuation from a third-party specialist is required for auditors.

📄 Required Documentation

Mortgage loan sale agreement (Fannie Mae MBS contract, Freddie Mac Gold PC), sale proceeds documentation, MSR fair value model (prepayment speed, discount rate, servicing cost inputs), relative fair value allocation calculation, ASC 860 derecognition analysis, gain on sale P&L, and MSR initial capitalization entries.

Professional Excel Template

Get the automated version of this entry. Includes built-in IFRS checks, VAT calculators, and SAP-ready upload formats.

Notify Me on Release
QA

Expert Analysis by Qusai Ahmad

General Accountant Supervisor & IFRS Specialist

Specialized in SAP GUI automation and Middle Eastern tax compliance. Building digital tools for the next generation of finance leaders.

LinkedIn Profile

Discussion & Community Questions