Mortgage lending
Contract

Warehouse line master repurchase agreement

The short-term funding agreement that lets a nonbank lender fund loans at closing. Legally most US warehouse lines are repurchase agreements: the warehouse bank buys each new loan from the lender for slightly less than its value and the lender agrees to buy it back, usually within weeks, when the loan is sold to an agency or investor. The agreement sets the advance rate, pricing, eligible loan types and how long they may stay on the line, margin calls, financial covenants, and the warehouse bank's control over the notes and sale proceeds.

.md
Between
Warehouse lendersIndependent mortgage banks (nonbank lenders)
Typical term Commonly one year (364-day) facilities renewed annually; each loan typically stays on the line for days to a few weeks.
The relationship it governs →
01

Key terms, explained

Purchase price and advance rate
The warehouse bank pays a percentage of the lower of the loan amount and market value, commonly in the high 90s percent for agency loans and lower for non-agency loans; the lender funds the difference (the haircut) from its own cash.
Repurchase price and pricing
The lender buys the loan back at the purchase price plus a price differential, commonly a benchmark such as SOFR plus a spread, often with a floor.
Eligible loans and sublimits
Which loan types may be financed (conforming, government, jumbo, non-QM, HELOC) and caps on each category.
Dwell time (aging) limits
The maximum days a loan may stay on the line, commonly 30 to 60 days for agency loans, after which it must be repurchased or its advance reduced.
Margin calls
If a loan's market value falls, the lender must post cash or more loans to restore the margin.
Financial covenants
Minimum tangible net worth, liquidity, maximum leverage and sometimes profitability, tested monthly or quarterly.
Collateral control
The original notes are held by the warehouse bank or a custodian; when a loan is sold, a bailee letter tells the buyer to pay the warehouse bank directly.
Wet vs. dry funding
Wet funding advances before closing documents are received; dry funding only after the closed file is delivered.
Bankruptcy safe harbour
In the US, repurchase agreements involving mortgage loans qualify for safe harbour protections under the Bankruptcy Code (sections 101(47) and 559), letting the warehouse bank liquidate collateral if the lender fails.
Cross-default and change of control
Default under other financing or a change of ownership can trigger default under the line.
Term and renewal
Most lines are 364-day facilities renewed annually.
02

How the money works

The lender pays interest (the price differential) on outstanding advances plus commitment, non-usage and per-loan fees. Warehouse banks often require deposit balances (escrow and custodial deposits), which earn them low-cost funding and can offset pricing. The haircut ties up the lender's equity, so warehouse capacity limits how much a nonbank can originate.

03

How it differs by country

United States

Repo-style warehouse lines dominate because of the Bankruptcy Code safe harbour. Warehouse lenders include large banks and specialist banks; the GSEs also offer early funding programs (Fannie Mae's As Soon As Pooled, Freddie Mac's Early Funding) that shorten time on the line.

Australia

Non-bank lenders fund in warehouse trusts: loans are equitably assigned to a trust funded by bank senior notes and lender-held subordinated notes, then refinanced in public RMBS.

United Kingdom

Specialist lenders use securitisation-style warehouse facilities in which a bank funds a special purpose vehicle holding the loans, with the lender holding a first-loss tranche.

Canada

Non-bank lenders use bank warehouse facilities and then sell insured loans into NHA MBS and Canada Mortgage Bonds.

04

In detail

A warehouse advance is a revolving loop: fund at closing, hold briefly, sell, repay.

Consensus Link
  1. 1
    Loan closes
    Warehouse funds advance
  2. 2
    Note to custodian
  3. 3
    Loan sold
    Bailee letter to buyer
  4. 4
    Buyer pays warehouse
  5. 5
    Line freed for next loan
The warehouse funding cycle.

The warehouse bank stands between the lender and the loan buyer, controlling the note until it is paid.

Consensus Link
  1. Warehouse lender
    ↓ loan funds at closing
    Settlement agent
  2. ↓ note under bailee letter
    Loan buyer
  3. ↓ sale proceeds
    Warehouse lender
Flows under a warehouse repurchase agreement.

The haircut is the lender's own money in each loan; agency loans get the highest advance rates.

Inferred Link
Advance rate for agency-eligible loans (common range)
95–99% of loan value
80% of loan value100% of loan value
Common warehouse advance rates for agency loans.

Covenants are the warehouse bank's early warning system; breaching one can freeze the line.

Consensus Link
01
Tangible net worth
Minimum dollar amount
02
Liquidity
Unrestricted cash
03
Leverage
Debt to TNW ceiling
04
Profitability
No consecutive losses
Typical warehouse financial covenants.
Before you go

Did you find what you came here for?