NMLS mortgage math, worked out

The NMLS test has no math section, but math runs through origination and general mortgage knowledge: qualifying ratios, loan-to-value, points, prepaid interest, PMI and ARM caps. Every formula below has an example, and the test center gives you a basic calculator.

Last updated November 23, 2026

Formula sheet

To findFormula
Front-end (housing) ratioMonthly housing payment ÷ gross monthly income
Back-end (total debt) ratio(Housing payment + other monthly debts) ÷ gross monthly income
Loan-to-value (LTV)Loan ÷ the lower of price or appraised value
Combined LTV (CLTV)All loans on the property ÷ the lower of price or appraised value
PointsLoan amount × points (1 point = 1% of the loan)
Daily (per diem) interestLoan × rate ÷ 365 (or ÷ 360 if the question says so)
Prepaid interest at closingDaily interest × days from closing through the end of the month
One month's interestBalance × rate ÷ 12
Principal paid in a monthPayment − that month's interest
ARM rateIndex + margin, limited by the caps

Debt-to-income (DTI)

Lenders compare monthly debts to gross monthly income, before taxes. The front-end ratio uses only the housing payment: principal, interest, taxes, insurance, and any mortgage insurance or HOA dues. The back-end ratio adds every other monthly debt: the ones on the credit report plus others like child support or alimony.

A borrower earns $96,000 a year, which is $8,000 a month. The new housing payment is $2,240. Other debts: a $450 car payment, $110 in card minimums and a $300 student loan.
Front-end: $2,240 ÷ $8,000 = 28%.
Back-end: ($2,240 + $450 + $110 + $300) ÷ $8,000 = $3,100 ÷ $8,000 = 38.75%.
ProgramDTI limit
Fannie Mae, automated (DU)Up to 50%
Fannie Mae, manual underwriting36%, up to 45% with the required credit score and reserves
FHA, manual underwriting31% front-end and 43% back-end. With a 580+ score and compensating factors: 37/47, 40/40 or 40/50
General Qualified Mortgage (Regulation Z)No fixed DTI cap. The old 43% cap was replaced by a price test (allowed from March 1, 2021, required from October 1, 2022)

Watch for older study material that still says a Qualified Mortgage needs a DTI of 43% or less. Lenders still have to consider DTI, but the hard cap is gone.

LTV and CLTV

On a purchase, divide by the lower of the price and the appraised value. That's the most common trap.

A home sells for $400,000 but appraises at $390,000. The loan is $351,000. LTV = $351,000 ÷ $390,000 = 90%, not $351,000 ÷ $400,000 = 87.75%.
Add a $39,000 second mortgage: CLTV = ($351,000 + $39,000) ÷ $390,000 = 100%.

On a refinance there's no price, so divide by the appraised value. Fannie Mae rounds LTV up to the next whole percent for its limits, so 94.01% counts as 95%.

Discount points

One point is 1% of the loan amount, not the price.

1.25 points on a $320,000 loan: $320,000 × 1.25% = $4,000.

For a Qualified Mortgage of $137,958 or more in 2026, total points and fees can't go over 3% of the loan. Smaller loans have higher limits.

Per diem (prepaid) interest

At closing, the borrower prepays interest from the closing date through the end of that month, counting the closing day. That's why the first regular payment usually isn't due until the first of the month after next.

$300,000 at 6.5%, closing on June 20. Days: June 20 through June 30 is 11 days.
On a 365-day year: $300,000 × 6.5% ÷ 365 = $53.42 a day × 11 = $587.62.
On a 360-day year: $300,000 × 6.5% ÷ 360 = $54.17 a day × 11 = $595.87.
Both round the daily amount to the cent first. Without rounding you get $587.67 and $595.83, so pick the choice closest to your answer.

No single federal rule fixes the day count. FHA requires 1/365 of the yearly rate. The CFPB's sample Loan Estimate works out to a 360-day year ($162,000 at 3.875% shows $17.44 a day). On the test, use whatever the question gives you.

Interest and principal in a payment

A $250,000 loan at 6% for 30 years has a principal and interest payment of $1,498.88. First month's interest: $250,000 × 6% ÷ 12 = $1,250. Principal paid: $1,498.88 − $1,250 = $248.88. Next month's interest is figured on the new, slightly lower balance.

Private mortgage insurance (PMI)

WhenWhat happensBased on
Balance reaches 80% of original value (on schedule or by paying ahead)The borrower can ask in writing to cancel PMI, if current with a good payment history. The lender can ask for proof the value hasn't droppedOriginal value
Balance scheduled to reach 78%PMI ends automatically if the borrower is currentOriginal value
Midpoint of the loan termPMI must end, whatever the balance (if current)Loan term
Original value: the lower of the $250,000 price and the appraisal, here $250,000. The borrower can ask to cancel at a scheduled balance of $250,000 × 80% = $200,000. PMI ends on its own at $250,000 × 78% = $195,000. On a 30-year loan, it must end after year 15 at the latest.

These rules come from the Homeowners Protection Act and cover private mortgage insurance on conventional loans. FHA mortgage insurance has its own rules.

ARM rates and caps

Rate = index + margin. The margin is fixed for the life of the loan. The index moves. Caps limit how far the rate can move, written as three numbers: the first change, each later change, and the lifetime cap.

A 5/1 ARM starts at 5% with 2/2/5 caps and a 2.75% margin. At the first change the index is 4.5%: 4.5% + 2.75% = 7.25%, but the first cap allows only 5% + 2% = 7%. The rate can never go above 5% + 5% = 10%.

How to get the math questions right

  1. Monthly or yearly? DTI uses monthly numbers. Convert yearly income and taxes first.
  2. Gross, not net. DTI uses income before taxes.
  3. The lower value. LTV and PMI use the lower of price or appraisal on a purchase.
  4. The loan, not the price, for points and fees.
  5. Read for 360 or 365 on any daily interest question.

Practice with the free NMLS practice test, and see the TRID timelines calculator for the date questions. The real estate exam math page covers prorations and taxes.

Splitting a payment month by month: amortization schedule.

Sources, read November 17, 2026: Regulation Z, 12 CFR 1026.37(g)(2) and 1026.43 with the Official Interpretations (2026 points and fees limits), CFPB sample Loan Estimate H-24(B), HUD Handbook 4000.1 (per diem interest and FHA ratios), Fannie Mae Selling Guide B3-6-02, B2-1.2-01 and B2-1.2-02, Homeowners Protection Act (12 U.S.C. 4901 and 4902), and the CFPB's Consumer Handbook on Adjustable-Rate Mortgages. Program limits change, so check the current guides on a real loan.

Questions people ask

Is there math on the NMLS test?
Yes, though there's no math section. Expect debt-to-income, loan-to-value, points, per diem interest and ARM caps inside the origination and general mortgage knowledge questions. The test center gives you a basic calculator.
How do you calculate DTI for the NMLS exam?
Divide monthly debts by gross monthly income. The front-end ratio uses only the housing payment. The back-end ratio adds every other monthly debt. $3,100 in debts on $8,000 a month is 38.75%.
Do you use 360 or 365 days for per diem interest?
Use what the question says. No single federal rule sets it: FHA requires 365, and the CFPB's sample Loan Estimate works out to 360.