What is my debt-to-income ratio?
Three inputs: gross income, the housing payment, and the other monthly minimums. The calculator returns the front-end and back-end ratios lenders actually check, names the band you land in against Fannie Mae's 36, 45, and 50 percent lines, and prices your headroom in dollars a month, on the page and as JSON. If you are sizing a purchase, it hands the same numbers straight to the house affordability calculator.
Loading the calculator.
How the two ratios are computed
Both ratios divide monthly debt service by gross monthly income, which is annual income over twelve. At the example inputs, $100,000 a year is $8,333 a month before tax. The $2,000 housing payment alone is 24.0% of it: the front-end ratio. Adding $500 of other minimums makes $2,500 of total debt service, 30.0% of income: the back-end ratio.
The back-end number is the one underwriting rules on. Fannie Mae's Selling Guide sets its limits on the total ratio only, so the front-end figure here is informational: a clean read on how much of the load is the roof rather than the loans. Income is gross because that is how the guide's arithmetic works; nothing here nets out taxes.
While you rent, the rent is the housing payment. When a lender qualifies you for a mortgage, it swaps the rent out for the proposed full house payment, principal, interest, tax, insurance, and dues, and recomputes the same two fractions.
The three lender lines
The limits come from one primary source, Fannie Mae Selling Guide B3-6-02, as of 2025-04-02: a maximum total ratio of 36% for manually underwritten loans, up to 45% with credit score and reserve requirements, and 50% as the Desktop Underwriter maximum. They are ceilings on the back-end ratio, not targets; the guide sets no separate front-end line.
The useful translation is dollars, not points. At the example inputs, $2,500 of debt service on $8,333 of monthly income leaves $500 a month of room under the 36% line, $1,250 under 45%, and $1,667 under 50%. That is the car payment or card minimum you could add before crossing each line, and the calculator recomputes it for your numbers as you type.
Cross the top line and the dollars run the other way. The same income carrying $4,300 of debt service sits at 51.6%, $133 a month past even the 50% line; conventional approval at that ratio is unlikely, and the page says so rather than rounding the verdict off.
How to move the number
The ratio has one numerator and one denominator, so there are exactly two moves. On the numerator, paying off $100 of monthly minimums takes 1.2 points off the back-end ratio at the example income; clearing all $500 of minimums drops it to 24.0% and raises the headroom at the 36% line to $1,000 a month. Paying off a loan entirely removes its minimum; paying it down usually does not, which is why the last payment on a car loan moves the ratio and a big extra payment in the middle does not.
On the denominator, earning $5,000 more a year takes 1.43 points off at the example inputs. Income moves the ratio more slowly than debt at these sizes, but it moves every line's dollar headroom at once: each line is a percentage of income, so a raise widens all three at the same time. The drivers list under the result ranks the three moves for the numbers you entered.
What the calculator does not know
Everything else underwriting looks at. Residual income, what is actually left after the bills, can sink an approval that the ratio alone would pass. Credit score and reserves decide whether the 45% and 50% lines are available at all. Program overlays matter too: FHA and VA run their own ratio rules, and individual lenders overlay stricter ones. The lines here are the conventional Fannie Mae limits and nothing else.
The model uses gross income because that is the underwriting convention the source describes. It also trusts your inputs: a lender verifies income from documents, averages variable pay, and reads minimums off your credit report, which may not match what you type here. The ratio is arithmetic; the approval is a judgment this page does not make.
For agents and scripts
This calculator is built to be used without a browser. Every input is a query parameter on this page, and the same parameters on the JSON twin return the complete answer as a document.
GET /tools/dti.json?income=150000&housing=2500&debts=400
The response carries inputs after parsing and clamping, result with both ratios as fractions, the band, each lender line with its allowed debt and your dollar headroom or overage, the maximum housing payment at the 36 and 45 lines, and sensitivity tables by debts and by income, drivers ranked by effect with a plain sentence each, assumptions that say for every field whether you supplied it and which source the default came from, sources with URLs and as-of dates, warnings, a disclaimer, and in tool the canonicalUrl and jsonUrl that carry only your non-default parameters. The canonical URL is the answer's permanent address; use it when you cite the number.
Parameters, all optional, in any order:
income($ per year), default $100,000 per year.housing($ per month), default $2,000 per month.debts($ per month), default $500 per month.
Values accept plain numbers and loose human formats such as 100k, $100,000, or 6.5%. Unknown parameters are ignored, values outside a field's range are clamped and reported in warnings, and the endpoint never fails on bad input. Responses are cacheable for a day; the defaults change when their sources publish, and tool.version changes when the method does.
Common questions
What debt-to-income ratio do I need for a mortgage?
Fannie Mae's Selling Guide sets three lines for the total ratio: 36% for manually underwritten loans, up to 45% with credit score and reserve requirements, and 50% as the Desktop Underwriter maximum. At the example inputs, the back-end ratio is 30.0%, inside the 36% line with $500 a month of room. FHA and VA run their own limits; this page models the conventional lines only.
What is the difference between front-end and back-end DTI?
The front-end ratio is the housing payment alone over gross monthly income; the back-end ratio adds every other required minimum. At the defaults, $2,000 of housing on $8,333 of monthly income is a 24.0% front-end ratio, and $500 of other minimums takes the back-end ratio to 30.0%. Lenders decide on the back-end number; Fannie Mae's guide sets no separate front-end line.
What counts as monthly debt in the ratio?
Required minimum payments: credit card minimums, car loans, student loans, personal loans, child support, and the housing payment itself. Not the balances behind them, and not living costs: utilities, groceries, phone plans, and subscriptions stay out. If you pay a card in full every month, the minimum on the statement is still the figure a lender counts.
Is rent included in my debt-to-income ratio?
Yes, as the housing payment while you rent. When you apply for a mortgage, the lender swaps your rent out and the proposed full house payment in, and qualifies you on that number.
Is DTI calculated on gross or net income?
Gross. Underwriting compares debt to income before tax, the convention Fannie Mae's guide describes, so the ratio reads smaller than what your checking account feels. A 30.0% back-end ratio of gross income is a noticeably larger share of take-home pay; the calculator follows the underwriting convention because the lender will.
Can an agent or a script use this calculator?
Yes. Every input is a query parameter, and the same parameters on /tools/dti.json return the full answer as JSON: inputs, both ratios, the band, each lender line with the dollar headroom or overage, the maximum housing payment at the 36 and 45 lines, drivers, sensitivity tables by debts and by income, assumptions, sources, and warnings. No browser, no API key.
Sources
- Fannie Mae Selling Guide B3-6-02, Debt-to-Income Ratios, as of 2025-04-02. Manually underwritten loans: maximum total DTI 36%, up to 45% with credit score and reserve requirements. Desktop Underwriter: maximum 50%.
The three lines (36, 45, 50) are the only sourced figures on this page. The income, housing, and debt defaults are examples to be replaced, not statistics.
Want the number for your actual finances?
Carlo is a personal finance agent. It knows your accounts, debts, and goals, so instead of a ratio on example numbers it can compute your actual debt-to-income from the accounts you link, watch it as balances change, and tell you what paying off one specific card would do to it. Text it the question.
ask carlo anything(415) 376-5678
Written by Tejas Shah, Co-founder, Engineering. Building Carlo — the financial model that begins with the decision you're actually weighing. Previously engineering leadership across fintech and consumer startups.
This compares your debt payments to your gross income the way a mortgage underwriter does, with the ratio limits Fannie Mae publishes. It is not a loan approval, a rate quote, or financial advice. Credit score, reserves, residual income, and program overlays change the real answer.