The home affordability calculator formula is the math that converts gross monthly income, recurring debt payments, down payment, interest rate, and loan term into the maximum home price a buyer can reasonably carry. The formula has three stages. First, the 28/36 debt-to-income rule caps the monthly housing payment at the smaller of 28% of gross monthly income and 36% of gross income minus other monthly debts. Second, that payment is run through the inverse of the standard amortization equation (an annuity present-value formula) to recover the largest loan the payment can service at your quoted rate and term. Third, the down payment is added back on top to produce the affordable home price. Because each input feeds a specific line of the equation, changing any one of them — paying off a car loan, raising the down payment, switching from a 30-year to a 15-year term — produces a new price you can see in moments.

The 28/36 Rule, Written as an Equation
The 28/36 rule is a lender convention rather than a law, and it shows up as two ratios. The first is the front-end debt-to-income ratio: housing costs as a share of gross monthly income. The second is the back-end debt-to-income ratio: every recurring monthly debt payment, including the future mortgage, as a share of gross monthly income. Both are written as plain equations, and together they form the first half of any home affordability formula.
Front-end DTI:
maxHousingPayment ≤ 0.28 × grossMonthlyIncome
Back-end DTI:
maxHousingPayment + otherMonthlyDebts ≤ 0.36 × grossMonthlyIncome
Solving the second line for the housing payment gives maxHousingPayment ≤ 0.36 × grossMonthlyIncome − otherMonthlyDebts. The rule then takes the smaller of the two ceilings, so the front-end and back-end formulas collapse into a single line:
maxHousingPayment = min(0.28 × income, 0.36 × income − otherDebts)
When other debts are low, the 28% front-end ceiling binds and most buyers can ignore the second branch. As car loans, student loans, and minimum credit-card payments grow, the back-end ceiling pulls the number down. If your non-housing debts are very high relative to income, the back-end value can drop to zero, which signals that the borrower is overleveraged before they even pick a home price.
| Ratio | What it caps | Equation | When it usually binds |
|---|---|---|---|
| Front-end DTI | Housing costs only (principal and interest) | 0.28 × gross monthly income | Buyers with little other debt |
| Back-end DTI | Housing plus all recurring monthly debt | 0.36 × gross monthly income − other monthly debts | Buyers carrying student or auto loans |
The combined ceiling is the figure that flows into the next stage of the formula. According to the Consumer Financial Protection Bureau, debt-to-income ratio is one of the largest factors lenders rely on when sizing a mortgage, and the 28/36 split is among the most widely used benchmarks for that check (CFPB, "What is a debt-to-income ratio?").
From Monthly Payment to Maximum Loan
Once the monthly payment ceiling is fixed, the next step in the home affordability calculator formula finds the largest loan that payment can service at your expected rate and term. That requires inverting the standard amortization equation.
The forward form — what a mortgage calculator uses — takes a loan amount and solves for a monthly payment:
payment = loan × [r × (1+r)^n] / [(1+r)^n − 1]
Solving the same equation for the loan instead gives the inverse form, sometimes called an annuity present-value factor:
loan = payment × [(1+r)^n − 1] / [r × (1+r)^n]
with r = annualRate ÷ 12 and n = years × 12. When the rate is zero, the formula reduces to loan = payment × n. For any realistic mortgage, the bracketed term is the present-value annuity factor: it grows with longer terms and shrinks with higher rates, which is exactly why a 30-year loan can stretch into a larger principal than a 15-year loan at the same monthly payment.
Putting the Formula Together
The complete home affordability calculator formula is a chain: DTI ratio, then monthly payment ceiling, then inverse amortization, then loan amount, then home price. Written compactly, with I = gross monthly income, D = total recurring monthly debts, P = down payment, r = monthly interest rate, and n = total monthly payments:
1. payment = min(0.28 × I, 0.36 × I − D)
2. loan = payment × [(1+r)^n − 1] / [r × (1+r)^n]
3. affordableHomePrice = loan + P
Each variable maps to an input on the Home Affordability Calculator, and every output the tool reports — maximum monthly housing payment, maximum loan, and maximum home price — comes directly from one of those three lines. Adjusting a single input updates the entire chain, which is why the calculator refreshes as you type.
How to Run the Formula in the Calculator
You can work the three equations by hand, or you can let the tool apply them. With the Home Affordability Calculator, the process is:
- Enter your gross income. Type the figure before taxes and choose whether it represents a monthly or annual amount so the tool can convert it to a monthly base for the DTI step.
- Add up your recurring monthly debts. Include minimum credit-card payments, auto loans, and student loan payments. Skip utilities, food, and entertainment costs — the 28/36 rule only counts contractual monthly obligations.
- Enter your planned down payment. This is the cash you bring to closing, separate from closing costs. It is added directly to the maximum loan in the third line of the formula.
- Set the interest rate and term. Use the rate you expect to qualify for and the term (commonly 15 or 30 years) you are considering. The rate becomes r in the inverse amortization step.
- Read the three outputs. The maximum monthly housing payment, maximum loan amount, and affordable home price update as soon as any input changes.
Because the calculations run in your browser, no figure you type is uploaded or stored, and you can run scenarios — paying off a credit card, doubling the down payment, switching to a 15-year term — without affecting any other calculation.
A Worked Example With Real Numbers
To make the formula concrete, suppose a buyer has the following inputs:
- Gross monthly income: $7,000
- Other monthly debts: $500
- Down payment: $40,000
- Interest rate: 6.5% annual
- Term: 30 years (360 months)
Step 1 — payment ceiling.
Front-end ceiling: 0.28 × 7,000 = $1,960.
Back-end ceiling: 0.36 × 7,000 − 500 = 2,520 − 500 = $2,020.
Take the smaller: $1,960 is the binding number.
Step 2 — maximum loan.
Monthly rate r = 6.5% ÷ 12 = 0.005417, and n = 360.
(1 + r)^n = (1.005417)^360 ≈ 6.991.
Numerator: 6.991 − 1 = 5.991.
Denominator: 0.005417 × 6.991 ≈ 0.03787.
Loan = 1,960 × 5.991 ÷ 0.03787 ≈ 1,960 × 158.21 ≈ $310,090.
Step 3 — affordable home price.
Affordable home price = loan + down payment = 310,090 + 40,000 ≈ $350,000.
The arithmetic above is consistent with the standard mortgage relationship at 6.5% over 30 years: a payment of $1,960 services a principal near $310,000. Run the same inputs through the Home Affordability Calculator and you will land in the same neighborhood, with the exact figure depending only on how the tool rounds intermediate steps.
Formula Variables at a Glance
| Symbol | Meaning | Where it comes from |
|---|---|---|
| I | Gross monthly income, before taxes | Pay stub or last full year of earnings divided by 12 |
| D | Total recurring monthly debt (auto, student, credit-card minimums) | Sum of minimum monthly payments on existing debts |
| P | Cash down payment | Liquid savings applied to the purchase at closing |
| r | Monthly interest rate as a decimal | Quoted annual rate ÷ 12 |
| n | Total number of monthly payments | Loan term in years × 12 |
| payment | Maximum affordable monthly housing payment | Output of step 1 |
| loan | Maximum loan principal | Output of step 2 |
| affordableHomePrice | Maximum home price | loan + P |
What the Formula Leaves Out
The home affordability calculator formula is built to be transparent, and transparency means admitting what is missing. The estimate covers principal and interest only. Your real monthly bill will add property taxes, homeowners insurance, HOA dues, and possibly private mortgage insurance (PMI) when the down payment sits below 20%. Each of those reduces the price you can comfortably carry, so the formula's output is best read as an upper bound on what is comfortable rather than a floor on what is allowed.
The 28/36 rule is also a guideline rather than a hard ceiling. The Wikipedia entry on debt-to-income ratio notes that FHA, VA, and some conventional programs accept higher ratios for qualified borrowers, and lenders also weigh credit score, reserves, employment history, and the specific loan program (Debt-to-income ratio, Wikipedia). For a deeper look at where the formula breaks down, our guide on how accurate the Home Affordability Calculator really is walks through the same inputs under different underwriting assumptions.
Treat the figure as a starting benchmark for your search and a conversation with a lender, then confirm the actual pre-approval numbers before making an offer.