How the engine actually calculates your plan
No black box. This is the student loan calculator methodology behind every AttendingFi result: each plan the engine models, the formula behind it, the assumptions it makes and the federal authority for each rule, so you can check the work yourself.
✓ Last reviewed November 2026 · verified against current U.S. Dept. of Education, IRS & HHS guidance · we re-check when the law changes
Our student loan calculator methodology in four steps
Your real inputs
Loan balance and rate, income now and as an attending, training, employer, filing status and family size.
Month-by-month sim
We march every eligible repayment path forward one month at a time across your full trajectory.
Ranked by lifetime cost
Each path is scored by total out-of-pocket cost over its life, forgiveness, taxes and interest included.
The reasoning, shown
You see why your plan won, the assumptions used, and exactly what would flip the answer.
The short version: the engine takes the inputs you give the optimizer (balance, rate, career stage, specialty, months left in training, resident salary, expected attending income, employer type now and after training, whether any federal loan was taken out or consolidated on or after July 1, 2026, filing status, spouse income, family size, dependents and any PSLF payments already counted), simulates every plan you are eligible for one month at a time, adds the tax owed on any taxable forgiveness, and ranks the results by total dollars paid.
What we model
For a borrower with Direct Loans, the engine builds up to nine repayment paths. Each one is simulated month by month and scored on total out-of-pocket cost, in nominal dollars, over its life:
- Standard repayment. The classic 10-year fixed payment if all your loans were disbursed before July 1, 2026. If any loan was made on or after that date, the engine uses the Tiered Standard plan instead: 10, 15, 20 or 25 years depending on whether your balance is under $25,000, $25,000 to under $50,000, $50,000 to under $100,000, or $100,000 and up.
- PSLF on capped IBR. 120 qualifying payments at a qualifying employer, then tax-free forgiveness. Offered only if you have no loan made on or after July 1, 2026.
- PSLF on RAP. The same 120 payments under the Repayment Assistance Plan, open to legacy and new-regime borrowers alike.
- PSLF on a RAP-to-IBR hybrid. RAP while you are in training, capped IBR once you are an attending, both counting toward one 120-payment clock. Built only when you have a training phase and all your loans predate July 1, 2026; legacy borrowers can switch plans at any time.
- IBR to forgiveness. Capped payments for 20 years (if you first borrowed on or after July 1, 2014) or 25 years (if you had loans before then), with the forgiven balance taxed.
- PAYE to forgiveness. 10% of discretionary income, capped, forgiven after 20 years and taxed. Legacy borrowers only.
- ICR to forgiveness. 20% of income above the poverty line, forgiven after 25 years and taxed. Legacy borrowers only.
- RAP to forgiveness. Income-based payments with no cap, forgiven after 30 years and taxed, for borrowers not pursuing PSLF.
- Private refinance. Five fixed-rate terms (5, 7, 10, 15 and 20 years), each at a rate estimated for your profile (see Refinance rates below). The headline refinance is the term with the lowest total cost; all five are kept for the term-by-term comparison.
Two filters decide which of these you see. If you answer that any federal loan was taken out or consolidated on or after July 1, 2026, the engine removes IBR, PAYE, ICR and the hybrid, because the 2025 law limits those borrowers to RAP or Tiered Standard for all of their loans. If your employer path never reaches 120 qualifying months, the PSLF paths are removed. Consolidated Parent PLUS loans, which cannot use RAP, get a separate set of ICR-based routes.
One caution on PAYE and ICR. Both end on June 30, 2028, and whether a borrower who has never been on them can still newly enroll is unsettled: the codified rule still refers to borrowers repaying under those plans on July 1, 2024. Treat a PAYE or ICR result as something to confirm with your servicer before you rely on it.
The formulas
Standard, Tiered Standard and refinance payments use ordinary amortization: payment = balance × r ÷ (1 − (1 + r)⁻ⁿ), where r is the monthly rate and n is the number of months.
RAP payment. The engine finds your AGI band and applies that band's rate to your entire AGI: 1% for $10,001 to $20,000, rising one point per $10,000 band to 10% above $100,000. At $10,000 or less the payment is the $10 minimum. The annual figure is divided by 12, reduced by $50 for each dependent, and floored at $10 a month. There is no cap.
RAP benefits. Interest the payment does not cover is not charged, and principal falls by at least $50 a month. Two simplifications to know: the statute grants both benefits only for on-time payments, and it limits the principal match to the amount you actually paid. The engine assumes every payment is on time, so for payments under $50 its match is slightly generous.
IBR payment is 10% of discretionary income (AGI minus 150% of the poverty guideline for your family size) divided by 12, or 15% if you had federal loans before July 1, 2014. It is capped at the 10-year Standard payment on the balance you enter. The statute fixes the cap at the amount calculated when you first elect IBR, so if your balance has changed since then, your actual cap may differ. On the RAP-to-IBR path you enter IBR after training, so the real cap is set on your balance at that point; the engine uses the 10-year amount on the balance you enter today.
PAYE payment uses the same discretionary-income formula at 10% for every borrower, with the same cap. ICR payment is the lesser of 20% of income above 100% of the poverty guideline, divided by 12, or the payment that would repay the balance over 12 years.
Tax on forgiveness. For IBR, PAYE, ICR and RAP forgiveness, the engine adds the forgiven balance to that year's income and charges the difference in federal tax using 2026 brackets for your filing status. It then applies your state's top income-tax rate to the forgiven amount, capped at 15% and zero where the engine's state data shows no tax on it. State treatment varies, so treat that part as an estimate. The tax is included in the plan's total. PSLF forgiveness is tax-free, so it adds nothing.
PSLF counts a month only while your employer qualifies. Payments made in non-qualifying months still cost you money but do not move the clock. Once 120 qualifying months accrue, the remaining balance is forgiven. If you pay the loan off first, or leave qualifying work before reaching 120, the PSLF path is marked as not reached and dropped.
Your income isn't static, and neither is our model. If you're a resident, the engine applies your training-years salary first, then switches to your attending income for the remaining months and grows it 2% a year from there. That trajectory is exactly what decides whether forgiveness or payoff wins.
How the engine picks your answer
Ranking by total cost is the starting point, not the whole rule. Refinancing is the one move that can't be undone: it permanently gives up PSLF, income-driven plans and federal death and disability discharge. So the engine applies four checks before it names a plan:
- Lowest total first. Every eligible plan is sorted by lifetime cost.
- PSLF protection. If the cheapest plan is a refinance and a PSLF path costs no more than 5% above it, measured against the PSLF path's own cost, the engine names the PSLF path.
- Near-tie rule. With no PSLF path in play, a federal plan within 1% of the refinance total is named instead of the refinance.
- Affordability guard. The engine never headlines a refinance whose payment exceeds 40% of your current gross monthly income when a federal plan below that line exists.
The cheaper plan is still ranked and shown, with its dollar gap. The engine also assigns a confidence label based on the gap to the runner-up: high at 15% or more, moderate at 5% to 15%, and close below 5%.
For married borrowers the engine also prices the filing decision. It compares married-filing-jointly against married-filing-separately over 10 years, counting both the income-driven payments and the household's federal income tax, because a lower loan payment can be wiped out by a higher tax bill. In the nine community-property states (AZ, CA, ID, LA, NV, NM, TX, WA and WI), a separate return reports half of the couple's combined community income, and the engine models it that way.
A worked example from the engine
A hypothetical resident: $300,000 of federal loans at 6.5%, all disbursed before July 1, 2026; three years of training at $65,000; then $270,000 as an attending; single, no dependents, New York. Here is what the production engine returns when every job is at a nonprofit hospital:
| Path | First payment | Total paid |
|---|---|---|
| PSLF, RAP in training then capped IBR | $325/mo | $195,668 ($238,554 forgiven tax-free) |
| PSLF on capped IBR | $342/mo | $196,286 |
| PSLF on RAP | $325/mo | $212,426 |
| Refinance now, 5-year at 4.49% | $5,592/mo | $335,493 |
| Standard, 10-year | $3,406/mo | $408,773 |
| RAP, no PSLF (paid off before the 30-year mark) | $325/mo | $498,592 |
| IBR to 20-year forgiveness | $342/mo | $593,021, including about $81,075 of estimated tax |
The $325 and $342 first payments are easy to check by hand. RAP: $65,000 falls in the 6% band, and 6% of $65,000 ÷ 12 is $325. IBR: $65,000 minus 150% of the $15,960 guideline leaves $41,060, and 10% of that ÷ 12 is $342.
Move the same resident to a private employer and the PSLF rows disappear. The refinance is now the lowest total, but its $5,592 payment is more than 40% of a $65,000 salary, so the affordability guard names RAP for now and still shows the refinance and its savings. Re-run as an attending earning $270,000 at a private employer and the refinance becomes the headline at $335,493. If the same resident has a loan disbursed on or after July 1, 2026, the legacy rows go too: PSLF on RAP stays at $212,426 and the standard option becomes the 25-year Tiered Standard plan at $2,026 a month and $607,686 in total.
Hypothetical example for illustration, not a recommendation. Totals are nominal dollars paid, including estimated tax on non-PSLF forgiveness, and assume on-time payments and the engine's default 2% annual attending-income growth.
Key assumptions
- Poverty guideline. The 2026 HHS figures for the 48 contiguous states and DC: $15,960 for a household of one, plus $5,680 per additional person. Alaska and Hawaii guidelines are higher; the core model uses the 48-state figures.
- Income path. Training salary for the training years, then attending income growing 2% a year. A spouse's income grows at the same rate from the attending year onward.
- Filing status. Single and married-filing-separately borrowers are modeled on their own income, which is how RAP, IBR and PAYE treat a separate return. Married-filing-jointly adds the spouse's income. In community-property states, a separate return uses half of combined community income.
- Behavior. Every payment is made in full and on time, and you stay in the plan being modeled for its whole life.
- Taxes. 2026 federal brackets, not indexed for future inflation, plus your state's top rate on any taxable forgiveness. The engine also computes what that future bill is worth in today's dollars at a 5% annual discount rate, as context; the totals use the nominal figure.
- Refinance rates. Estimated for you, not one fixed table. We start from lenders’ published fixed-APR ranges with autopay for each term, refreshed weekly: KeyBank’s resident range for residents and fellows, and its standard range for attendings (it publishes no attending-only table). Your credit-score range sets where you sit in each range: 5% of the way from the lowest to the highest rate for excellent (760+), 20% for good (720–759), 45% for fair (680–719) and 75% for building (below 680). “Not sure” is treated as good. A balance above 2.5× your attending income moves you 5 points higher in the range, and above 4× 10 points; residents are measured against expected attending income, as lenders do. If you enter a rate you were quoted, we use it for the 10-year term and move the other terms by the same amount. These are estimates, not offers.
- Specialty incomes are estimates you can and should edit to match your actual offers.
- Not modeled: future changes in the law, employer-eligibility edge cases, PSLF Buyback, processing delays and one-off servicer errors.
Our sources & editorial standards
Every rule in our student loan calculator methodology is built from primary government sources, not blog posts, not lender marketing. We cite only:
- U.S. Department of Education / studentaid.gov, repayment plans (RAP, IBR), PSLF rules, and the 120-payment requirement, plus ED's final rule implementing the 2025 law (91 FR 23768, effective July 1, 2026).
- The 2025 reconciliation law (Public Law 119-21), which created RAP and Tiered Standard, removed IBR's financial-hardship test, and ends PAYE and ICR on June 30, 2028.
- The Direct Loan regulations at 34 CFR 685.209 (income-driven plans) and 685.219 (PSLF).
- Court orders: SAVE's final rule was vacated on March 10, 2026, and the 2025 PSLF employer rule was vacated in June 2026, with ED dropping its appeals in October 2026.
- IRS guidance and the tax code, for the federal tax treatment of forgiven balances (PSLF is tax-free; IDR forgiveness after December 31, 2025 is federally taxable).
- HHS poverty guidelines (2026), used in the discretionary-income formula.
Our editorial standard is simple: we model the rules as written, we show our math, we disclose our assumptions, and we update the engine as federal guidance is finalized. When we're uncertain, we say so and point you to the official source. We have no financial incentive to change your answer, referral fees, mainly from refinance partners, are how we earn, and the engine surfaces refinancing as your lowest-cost path strictly when your own numbers favor it, telling PSLF candidates not to refinance whenever PSLF costs less, even though we earn nothing in that case.
Engine last reviewed against federal rules: June 2026.
The legal basis for each calculation
Every plan in this student loan calculator methodology traces to a federal statute or regulation. We model the rules as written and follow ED's published final rule; where an operational detail is still unsettled, we say so on the result rather than presenting it as settled.
| Plan / rule | Primary authority |
|---|---|
| IBR — 10% (new borrower) / 15% (older), discretionary income, 10-year-Standard cap, 20/25-year forgiveness; no financial-hardship test since July 4, 2025; closed to anyone with a loan made on or after July 1, 2026 | 34 CFR § 685.209; Higher Education Act § 493C; P.L. 119-21 § 82001 |
| ICR — available through June 30, 2028 | 34 CFR § 685.209; P.L. 119-21 § 82001 |
| PAYE — available through June 30, 2028; borrowers who don't choose a plan move to RAP (or IBR) on July 1, 2028 | 34 CFR § 685.209; P.L. 119-21 § 82001 |
| Repayment Assistance Plan (RAP) — 1–10% of full AGI, −$50 per dependent, $10 minimum, no cap, on-time interest waiver and principal match, 30-year forgiveness | Higher Education Act § 455(q), added by P.L. 119-21; ED final rule, 91 FR 23768 (May 1, 2026); 34 CFR § 685.209 |
| Tiered Standard — 10/15/20/25-year fixed terms by balance; not PSLF-qualifying | Higher Education Act § 455(d)(7), added by P.L. 119-21 |
| PSLF — 120 qualifying payments, qualifying employer, tax-free forgiveness; RAP payments count | 34 CFR § 685.219; Higher Education Act § 455(m); P.L. 119-21 § 82004; IRC § 108(f)(1) |
| Standard 10-year amortization | 34 CFR § 685.208 |
| Discretionary income & poverty guidelines | HHS annual poverty guidelines; 34 CFR § 685.209 |
| Tax treatment of forgiveness | IRC § 108(f)(1) excludes PSLF permanently; P.L. 119-21 § 70119 replaced the temporary ARPA exclusion for discharges after Dec. 31, 2025, so IDR forgiveness is federally taxable again, while death and disability discharges stay excluded |
Note: ED published its final rule implementing RAP and the other 2025 changes on May 1, 2026, effective July 1, 2026. A few operational questions remain open, such as new enrollment in PAYE or ICR. One that is settled: a borrower whose loans all predate July 1, 2026 can change to any eligible plan at any time (34 CFR 685.210(b)(1)), which is what makes the RAP-to-IBR PSLF path work. Borrowers with a newer loan can move only between RAP and Tiered Standard. Where a detail is unsettled, we flag it rather than presenting it as settled.
Changelog
| Date | Change |
|---|---|
| November 2026 | Refinance rates are now estimated for each borrower from lenders’ published ranges, updated weekly, by career stage, credit-score range and debt-to-income, and you can enter your own quoted rate. This replaced a fixed mid-2026 rate table. |
| November 2026 | Methodology page reviewed against the engine code and updated: the 2026 poverty guideline, the 15% older-borrower IBR formula, PAYE and ICR modeling, Tiered Standard for new-regime borrowers, state tax on taxable forgiveness, the decision rules, and a worked example. Legal-basis table updated for ED's final rule and the vacated PSLF employer rule. |
| June 2026 | Added the new-borrower vs. older-borrower IBR split (10% / 20-year vs. 15% / 25-year, based on whether you first borrowed before July 1, 2014). Added RAP modeling, a RAP↔IBR hybrid for PSLF candidates, grandfathering logic for borrowers already on PAYE/ICR (with 2028 sunset warnings), and a “should I consolidate?” decision check. Reflected the end of SAVE and the return of federally taxable long-term IDR forgiveness. |
| Earlier 2026 | Initial engine: month-by-month lifetime-cost simulation of Standard, legacy IBR, PSLF, and private refinance, ranked by total out-of-pocket cost with forgiveness, taxes, and interest included. |
What we don't do
We don't sell your data, we don't take custody of your money, and we are not your investment adviser or fiduciary. The output is an educational estimate to help you ask better questions, not a directive. The 2026 rules are new and still being implemented by the Department of Education and servicers, so always verify specifics at studentaid.gov and confirm major decisions with a qualified advisor.

Frequently asked questions
Does the calculator include the tax on forgiveness?
Yes. For IBR, PAYE, ICR and RAP forgiveness, the estimated federal and state tax on the forgiven balance is added to that plan's total. PSLF forgiveness is tax-free, so nothing is added. Our tax bomb calculator shows the same estimate on its own.
Why doesn't the engine always name the cheapest plan?
Because refinancing can't be undone. If a PSLF path is within 5% of a cheaper refinance, or another federal plan is within 1%, or the refinance payment would exceed 40% of your current gross monthly income, the engine names the federal plan and shows the refinance savings next to it.
Does this student loan calculator methodology assume I pay on time?
Yes. Every modeled payment is made in full and on time. That matters most for RAP, whose interest waiver and principal match apply only to on-time payments.
Which poverty guideline does the engine use?
The 2026 HHS guideline for the 48 contiguous states and DC: $15,960 for one person plus $5,680 for each additional household member. It feeds the IBR, PAYE and ICR formulas; RAP uses your full AGI instead.