Financial calculators
Seven calculators for the money questions that come up most: what a loan really costs, which debt to pay off first, how savings grow, and how much you need for a goal, an emergency, or retirement. Each one shows the formula it uses and a worked example, so you can check the math yourself. No account needed: the math runs in your browser, so nothing you type is sent to us.
Results are estimates for planning, not financial advice.
Loan and mortgage calculator
Find the monthly payment on a fixed-rate loan or mortgage, what it costs in interest over the full term, and how much sooner an extra payment each month pays it off.
How this works
A fixed-rate loan is paid back in equal monthly payments. The payment comes from the standard amortization formula:
M = P × r ÷ (1 − (1 + r)−n)
- M is the monthly payment of principal and interest, rounded to the cent.
- P is the principal: the amount you borrow.
- r is the monthly interest rate: the annual rate as a decimal, divided by 12. At 6.5%, r is 0.065 ÷ 12.
- n is the number of monthly payments: the term in years times 12, plus any extra months.
At a 0% rate there is no interest to spread out, so the payment is simply P ÷ n.
Each month, interest is the remaining balance times r, rounded to the cent. The rest of the payment goes to principal and lowers the balance. Early on most of the payment is interest; as the balance shrinks, more of each payment goes to principal. Because the payment is rounded, the last payment is whatever is left, so it can differ from the others by a few dollars.
An extra payment goes straight to principal. The next month's interest is charged on a smaller balance, so more of the regular payment goes to principal too, and the loan ends sooner. The interest saved is the total interest without the extra payment minus the total with it.
For a mortgage, the result is principal and interest only. Property tax, homeowners insurance and mortgage insurance usually come on top.
Worked example
You borrow $300,000 at 6.5% for 30 years, with the first payment in January 2027.
- Monthly rate: r = 0.065 ÷ 12 = 0.00541667.
- Number of payments: n = 30 × 12 = 360.
- (1 + r)360 = 6.99179797, so (1 + r)−360 = 0.14302473 and 1 − 0.14302473 = 0.85697527.
- P × r = $300,000 × 0.00541667 = $1,625.00.
- M = $1,625.00 ÷ 0.85697527 = $1,896.204, which rounds to $1,896.20 a month.
- First payment: interest is $300,000 × r = $1,625.00, so $1,896.20 − $1,625.00 = $271.20 goes to principal and the balance falls to $299,728.80.
- Second payment: interest is $299,728.80 × r = $1,623.53, so $272.67 goes to principal and the balance falls to $299,456.13.
- Over all 360 payments you pay $382,636.71 in interest, $682,636.71 in total, and the loan is paid off in December 2056. That last payment is $1,900.91: the rounded payment is a fraction of a cent short each month, and the last payment makes up the difference.
Now add $200 to every payment. The loan is paid off in January 2050, after 277 payments instead of 360, with a last payment of $635.32. Total interest drops to $279,186.52, so the extra payments save $103,450.19 in interest and 6 years, 11 months of payments.
Debt payoff calculator: avalanche vs. snowball
If you owe on more than one debt and can pay more than the minimums, the order you pay them off changes how much interest you pay and when you finish. Enter your debts to compare the avalanche method (highest APR first) with the snowball method (smallest balance first): the payoff order, your debt-free date and the total interest for each.
How this works
Both strategies pay every minimum every month and put all the money left in your budget on one debt at a time, the target. They differ only in which debt comes first:
- Avalanche targets the highest APR first (for equal rates, the smaller balance). Each extra dollar goes where it stops the most interest, so it usually costs the least overall.
- Snowball targets the smallest balance first (for equal balances, the higher APR). You clear whole debts sooner and have fewer bills to keep track of early on, which many people find easier to stick with. It usually costs more in interest.
The calculator sets the order once, from the balances and rates you enter. Then, for each month until every balance is zero:
-
Interest. Each balance grows by one month of interest, rounded to the cent:
monthly interest = balance × APR ÷ 12
- Minimums. Each debt gets its minimum payment, or its whole balance if that is less.
- Extra. Whatever is left of your budget goes to the target debt. If that pays it off, the rest moves to the next debt in the order in the same month.
APR is the annual percentage rate on your statement, used as a decimal: a $2,000 balance at 24% APR adds $2,000 × 0.24 ÷ 12 = $40.00 of interest in a month.
When a debt is paid off, its minimum stays in your budget and joins the extra for the next target, so the amount aimed at the target grows each time you clear a debt. Both strategies work this way; only the order differs.
The results assume:
- Each APR stays the same, and interest is charged monthly at APR ÷ 12. Credit cards usually compound daily, so their real interest runs slightly higher.
- You add no new charges, fees or debts while paying these off.
- You pay the same budget every month, and each minimum payment stays the same until that debt is gone.
- Month 1 is your next payment. The dates count from it.
Worked example
Two debts and a budget of $300 a month:
- Credit card: $2,000 at 24% APR, $60 minimum payment
- Personal loan: $1,000 at 8% APR, $40 minimum payment
The minimums add up to $100, so $200 a month is extra. Avalanche targets the credit card (the higher APR). Snowball targets the personal loan (the smaller balance).
Month 1:
- Interest: $2,000.00 × 0.24 ÷ 12 = $40.00 on the card, which grows to $2,040.00. On the loan, $1,000.00 × 0.08 ÷ 12 = $6.67, so it grows to $1,006.67.
- Minimums: the card drops to $1,980.00 and the loan to $966.67.
- Extra: avalanche puts the $200 on the card, leaving $1,780.00 on the card and $966.67 on the loan. Snowball puts it on the loan, leaving $1,980.00 on the card and $766.67 on the loan.
Repeating those steps month after month:
- Avalanche pays off the card in month 9. The card needs only $113.96 that month, so the other $186.04 goes to the loan: its $40 minimum plus $146.04 of extra. The loan is paid off in month 11.
- Snowball pays off the loan in month 5. The loan needs only $57.68 that month, so the other $182.32 of extra goes to the card on top of its $60 minimum. The card is paid off in month 12.
| Result | Avalanche | Snowball |
|---|---|---|
| Paid off first | Credit card, month 9 | Personal loan, month 5 |
| Paid off second | Personal loan, month 11 | Credit card, month 12 |
| Debt-free in | 11 months | 12 months |
| Total interest | $251.14 | $338.12 |
| Total paid | $3,251.14 | $3,338.12 |
Avalanche costs $86.98 less in interest and finishes one month sooner. Snowball clears its first debt four months earlier, in month 5 instead of month 9. Enter these numbers above to see the full month-by-month timeline for each.
Compound interest calculator
See how a starting amount and a regular monthly deposit grow with compound interest, and how much of the final balance is money you put in and how much is interest.
How this works
The calculator assumes you add your monthly contribution at the end of each month, and that interest compounds at the frequency you choose at the annual rate you enter. Your ending balance has two parts: the starting amount grown by compound interest, and the future value of your monthly deposits.
Growth of the starting amount:
P × (1 + r/n)^(n × t)
The monthly growth factor, how much the balance grows in one month:
g = (1 + r/n)^(n/12)
Future value of the monthly deposits:
D × ((1 + r/n)^(n × t) − 1) ÷ (g − 1)
The ending balance is those two results added together. Then:
Total contributions = P + 12 × t × D
Interest earned = ending balance − total contributions
Where:
- P is the starting amount.
- D is the monthly contribution.
- r is the annual interest rate as a decimal: 5% is 0.05.
- n is how many times a year interest compounds: 1 annually, 4 quarterly, 12 monthly, 365 daily.
- t is the number of years.
- g is the monthly growth factor. With monthly compounding it is simply 1 + r/12.
- ^ means "to the power of": (1 + r/n)^(n × t) is 1 + r/n multiplied by itself n × t times.
When interest compounds annually, quarterly or daily, the calculator turns the rate into the equivalent monthly growth factor g, so every deposit earns interest from the month after you make it. This is the usual convention for savings calculators. Banks differ in the details, such as when they credit interest and how they treat deposits made between credits, so a real account can come out slightly different.
At 0% the balance is simply P + 12 × t × D. With no monthly contribution, only the first formula applies. The year-by-year table rounds each year-end balance to the cent and counts a year's interest as the change in balance minus that year's deposits, so the rows add up to the totals.
The rate stays the same every year. Savings rates change and investment returns go up and down, sometimes below zero, so treat the result as one scenario, not a forecast. Taxes, fees and inflation are not included.
Worked example
You start with $5,000, add $250 at the end of every month, and earn 5% a year compounded monthly for 20 years. These are the calculator's starting values, so the results above show the same figures.
- Monthly rate: 0.05 ÷ 12 = 0.0041667, so g = 1.0041667. Keep every digit if you follow along on a calculator.
- Number of months: 12 × 20 = 240.
- Growth over 20 years: (1 + 0.05/12)^240 = 2.7126403.
- The starting amount grows to $5,000 × 2.7126403 = $13,563.20.
- The deposits grow to $250 × (2.7126403 − 1) ÷ (0.05/12) = $250 × 411.03367 = $102,758.42.
- Ending balance: $13,563.20 + $102,758.42 = $116,321.62.
- Total contributions: $5,000 + 240 × $250 = $65,000.00.
- Interest earned: $116,321.62 − $65,000.00 = $51,321.62, about 44% of the ending balance.
How often interest compounds matters much less than the rate and the time. The same plan compounded annually ends at $114,717.61, quarterly at $116,020.72, and daily at $116,468.67.
Savings goal calculator
Find out how much to set aside each month to reach a savings target by a date you choose. Or turn it around: enter what you can save each month and see when you will get there.
How this works
The calculator assumes your savings earn the expected annual rate, compounded monthly, and that you deposit the same amount at the end of every month, starting this month. It uses these symbols:
- FV: the target amount you want to reach.
- PV: what you have saved today.
- i: the monthly rate, which is the expected annual rate divided by 12. At 4% a year, i = 0.04 ÷ 12 = 0.0033333… a month.
- n: the number of monthly deposits, which is the number of months between now and the target date.
- P: the monthly deposit.
- G: the growth factor (1 + i)n, what each dollar you have today is worth after n months.
- B: the balance after n months.
After n months, today's savings have grown to PV × G and the deposits, with their interest, to P × (G − 1) ÷ i:
G = (1 + i)n
B = PV × G + P × (G − 1) ÷ i
How much per month? Set the balance equal to the target and solve for P:
P = (FV − PV × G) × i ÷ (G − 1)
At 0% nothing grows, so the gap is split evenly: P = (FV − PV) ÷ n. The answer is rounded up to the next cent so the balance actually reaches the target. If PV × G is already at or above FV, your current savings get there on their own and the required deposit is $0.
When will I get there? Solve the same equation for n instead (ln is the natural logarithm):
R = (FV + P ÷ i) ÷ (PV + P ÷ i)
n = ln(R) ÷ ln(1 + i)
At 0%, n = (FV − PV) ÷ P. Either way n is rounded up to a whole month, because the balance only passes the target when a deposit lands. If you add nothing and earn nothing, or the pace would take more than 100 years, the calculator tells you instead of giving a date.
The rate is an assumption. Savings account rates change over time, and the calculator leaves out taxes on interest and any fees, so treat the result as a plan to check again later.
Worked example
How much per month? You want $20,000 in 36 months. You have $2,500 saved and expect to earn 4% a year.
- The monthly rate is i = 0.04 ÷ 12 = 0.0033333…
- The growth factor is G = (1.0033333…)36 = 1.1272719.
- On its own, your $2,500 grows to $2,500 × 1.1272719 = $2,818.18.
- The deposits have to cover the rest: $20,000 − $2,818.18 = $17,181.82.
- P = $17,181.82 × 0.0033333… ÷ 0.1272719 = $450.003, which rounds up to $450.01 a month.
- Over 36 months you deposit 36 × $450.01 = $16,200.36. The balance reaches $2,818.18 + $450.01 × 0.1272719 ÷ 0.0033333… = $20,000.26, which is 26 cents over the target because the deposit was rounded up. Interest earned is $20,000.26 − $2,500 − $16,200.36 = $1,299.90.
When will I get there? Same target, same $2,500 and 4%, but you decide you can put away $500 a month.
- P ÷ i = $500 ÷ 0.0033333… = $150,000.
- R = ($20,000 + $150,000) ÷ ($2,500 + $150,000) = 1.1147541.
- n = ln(1.1147541) ÷ ln(1.0033333…) = 0.1086338 ÷ 0.0033278 = 32.64, which rounds up to 33 months from now (2 years, 9 months).
- After 32 months the balance is $19,635.82, still short. After 33 months it is $20,201.27. You deposit 33 × $500 = $16,500 and earn $20,201.27 − $2,500 − $16,500 = $1,201.27 in interest.
Emergency fund calculator
How much cash should you keep for a job loss or a big surprise bill? Enter what your essentials cost each month to see your target, how much of it you already have, and how long your monthly savings will take to close the gap.
How this works
An emergency fund is cash set aside for the months when your income stops or a large bill arrives without warning. The calculator sizes it from what you must keep paying no matter what, not from your income.
First, add up your essential monthly expenses, line by line:
E = sum of the expense lines
Your target is that amount times the number of months you want covered:
T = E × M
The gap is what you still need to save, and your current savings also tell you how far they would stretch on their own:
G = T − S, never below 0
covered = S ÷ T × 100%
months covered = S ÷ E
Finally, the time to reach the target at a steady monthly contribution, rounded up to a whole month because a partial month still has to be saved:
N = G ÷ C, rounded up
- E is your total essential expenses per month.
- M is the months of coverage you choose: 3, 6 or 12.
- T is the target size of the fund.
- S is what you already have in emergency savings.
- G is the remaining gap.
- C is what you add to the fund each month.
- N is the number of months until you reach the target. With no monthly contribution the gap never closes.
The calculator assumes the fund earns no interest. That is a deliberate simplification: an emergency fund is usually held as cash in a savings account, and the interest it earns would shorten the time to reach the target only slightly. It also assumes your expenses and your contribution stay the same until you get there.
What counts as essential
Count what you would still have to pay if your paycheck stopped tomorrow: rent or mortgage, utilities, groceries, getting to work or to interviews, insurance premiums, the minimum payment on each debt, and regular healthcare costs. Leave out what you could pause for a few months, such as dining out, subscriptions, travel, extra debt payments and contributions to savings or investments.
Use what you actually spend, not what you plan to spend. A few months of bank and card statements give you a realistic figure for each line. If you would lose employer health coverage along with your job, use what replacement coverage would cost.
Choosing 3, 6 or 12 months
- 3 months can be enough for a household with two stable incomes, steady jobs in a field that hires quickly, and no one else depending on that income.
- 6 months is a sensible default, and a better fit when the household lives on a single income or has children or other dependents.
- 12 months makes sense when your income is variable, commission-based or self-employed, when one income supports dependents, or when a job search in your field usually takes a long time.
If you are unsure, start with a 3-month target as a first milestone and keep going toward 6. The comparison table in the results shows the target and the time to reach it for all three levels.
Worked example
These are the numbers the calculator starts with. Suppose your essential monthly expenses are housing $1,400, utilities $250, groceries $500, transportation $350, insurance $200, minimum debt payments $300, healthcare $100 and other essentials $400. You want 6 months of coverage, you have $5,000 saved, and you can add $400 a month.
- Essential monthly expenses: E = $1,400 + $250 + $500 + $350 + $200 + $300 + $100 + $400 = $3,500.
- Target: T = $3,500 × 6 = $21,000.
- Already covered: $5,000 ÷ $21,000 = 23.8% of the target. On its own, $5,000 ÷ $3,500 covers 1.4 months of expenses.
- Gap: G = $21,000 − $5,000 = $16,000.
- Time to reach the target: N = $16,000 ÷ $400 = 40 months, or 3 years, 4 months.
At the same $400 a month, a 3-month fund of $10,500 leaves a $5,500 gap: $5,500 ÷ $400 = 13.75, rounded up to 14 months (1 year, 2 months). A 12-month fund of $42,000 leaves a $37,000 gap: $37,000 ÷ $400 = 92.5, rounded up to 93 months (7 years, 9 months).
Retirement savings calculator
See what your retirement savings could grow to by the age you plan to stop working, both in future dollars and in what that money would buy today, and roughly how much yearly income it could support.
How this works
The calculator grows your savings one month at a time, with these rules:
- The expected annual return is split evenly into a monthly rate (6% a year is 0.5% a month) and compounds every month.
- Your contribution and your employer's match go in at the end of each month and stay the same dollar amount every month until you retire.
- Ages are whole years, so the time until retirement is a whole number of years.
Your balance at retirement is your current savings left to grow, plus the growth of everything you add along the way:
B = P × (1 + r)^n + c × ((1 + r)^n − 1) ÷ r
With a 0% return there is no growth, and the formula becomes:
B = P + c × n
Prices rise over time, so a dollar at retirement buys less than a dollar does now. Dividing by the inflation factor turns B into today's dollars, meaning what the balance would buy at today's prices:
T = B ÷ (1 + i)^y
The income estimate uses the 4% rule:
yearly income = 0.04 × T
monthly income = 0.04 × T ÷ 12
- B is your balance at retirement in future dollars, the amount your statement would show.
- P is what you have saved for retirement today.
- r is the monthly return: the expected annual return as a decimal, divided by 12. At 6%, r = 0.06 ÷ 12 = 0.005.
- c is what goes in each month: your contribution plus your employer's match.
- y is the number of years until retirement: retirement age minus current age.
- n is the number of months until retirement: 12 × y.
- i is the expected annual inflation as a decimal. At 2.5%, i = 0.025.
- T is your balance at retirement in today's dollars.
The 4% rule comes from studies of past US stock and bond returns. They found that taking 4% of your savings in the first year of retirement, then raising that dollar amount with inflation each year, usually lasted at least 30 years. The year-by-year table rounds each year-end balance to the cent, and a year's growth is the change in the balance minus that year's contributions, so the rows add up to the totals.
What this leaves out
- Returns are not guaranteed. Real returns change from year to year and some years lose money, while the calculator uses one steady rate.
- Contributions stay flat: no raises, no catch-up contributions and no skipped months.
- No taxes, fees, Social Security, pensions or other income are included.
- The 4% rule is a rough rule of thumb from past US markets for a retirement of about 30 years. It is not a promise that your money will last.
- This is an estimate for planning, not financial advice.
Worked example
These are the numbers the calculator starts with. You are 35 and plan to retire at 67. You have $50,000 saved, you put in $500 a month and your employer adds $250 a month. You expect a 6% annual return and 2.5% inflation.
- Time until retirement: y = 67 − 35 = 32 years, so n = 32 × 12 = 384 months.
- Monthly return: r = 0.06 ÷ 12 = 0.005.
- Growth factor: (1 + 0.005)^384 = 6.78840453 (rounded to eight decimal places).
- Your current savings grow to $50,000 × 6.78840453 = $339,420.23.
- Each month c = $500 + $250 = $750 goes in. Those deposits grow to $750 × (6.78840453 − 1) ÷ 0.005 = $868,260.68.
- Balance at 67 in future dollars: B = $339,420.23 + $868,260.68 = $1,207,680.91.
- Inflation factor: (1 + 0.025)^32 = 2.20375694. Balance in today's dollars: T = $1,207,680.91 ÷ 2.20375694 = $548,010.03.
- Where the money came from: you put in $500 × 384 = $192,000, your employer adds $250 × 384 = $96,000, and investment growth is $1,207,680.91 − $50,000 − $192,000 − $96,000 = $869,680.91.
- 4% rule: 0.04 × $548,010.03 = $21,920.40 a year, or $21,920.40 ÷ 12 = $1,826.70 a month, in today's dollars, for the first year of withdrawals.
So $1.2 million at 67 sounds like a lot, but at 2.5% inflation it buys about what $548,000 buys today.
Credit card payoff calculator
How long will your credit card balance take to clear, and how much interest will it cost? Compare paying only the minimum your card asks for with paying the same fixed amount every month, and see what the minimum really costs you.
How this works
The calculator follows your balance one month at a time, assuming you make no new purchases and pay no fees. Each month it adds that month's interest, works out the payment and subtracts it, until nothing is left:
interest = B × r ÷ 12 statement = B + interest minimum = max(F, p × statement) new B = statement − payment
- B is the balance you owe at the start of the month.
- r is the APR as a decimal (22% is 0.22), so r ÷ 12 is the monthly interest rate.
- statement is the statement balance: what you owe once the month's interest is added. The minimum is figured on this amount.
- p is the minimum payment percent as a decimal (2% is 0.02).
- F is the smallest minimum the card asks for, such as $25. max means the larger of the two, and when the statement balance is below F the minimum is the whole balance.
- payment is the minimum when you pay only the minimum, or your fixed amount when you pay that. The last payment is whatever is left.
Interest is rounded to the cent each month. Real cards charge interest daily on your average daily balance, so a real statement can differ by a few cents a month; dividing the APR by 12 is the standard monthly approximation. Each issuer sets its own minimum rule in the cardholder agreement, and some use a different formula, such as 1% of the balance plus the month's interest, so check yours.
Why paying only the minimum takes so long. The minimum is a percentage of what you owe, so it shrinks as the balance falls. At 22% APR, about nine tenths of a 2% minimum goes to interest, which means only a sliver comes off the balance. Next month the balance is a little lower, so the minimum is a little lower too, and once again almost all of it is interest. Because the payment keeps shrinking along with the balance, the balance never starts to fall quickly. Only when the payment reaches the floor does it stop shrinking, and from then on the rest clears at a steady pace. A fixed payment works the other way: as the balance falls, less of the same payment goes to interest and more of it goes to the balance.
Your fixed payment has to be more than the first month's interest, or the balance would never go down, and at least the card's first minimum payment, because the issuer will not accept less. If the minimum payment does not cover the month's interest (a low percent with a high APR), paying only the minimum never clears the card, and the calculator says so. It counts up to 100 years.
Worked example
You owe $5,000 at 22% APR, on a card whose minimum payment is 2% of the statement balance or $25, whichever is more. You compare paying only the minimum with paying $150 every month.
- First month's interest: $5,000 × 0.22 ÷ 12 = $91.666…, which rounds to $91.67. The statement balance is $5,091.67.
- First minimum payment: 2% × $5,091.67 = $101.83, more than the $25 floor. Of that, $91.67 is interest and only $10.16 goes to the balance, which falls to $4,989.84.
- Paying $150 instead: $91.67 goes to interest and $58.33 to the balance, which falls to $4,941.67.
- Second month: interest on $4,989.84 is $91.48, so the minimum drops to $101.63 and pays down just $10.15. At $150, interest on $4,941.67 is $90.60 and $59.40 goes to the balance.
- Carried to the end, paying only the minimum takes 817 payments (68 years, 1 month) and costs $35,957.25 in interest, $40,957.25 in all. The payment does not reach the $25 floor until month 691, with $1,227.47 still owed.
- Paying $150 a month takes 52 payments (4 years, 4 months; the last one is $148.09) and costs $2,798.09 in interest, $7,798.09 in all.
The fixed $150 saves you $33,159.16 in interest and 63 years, 9 months. In the first year alone, the minimum payments add up to $1,208.42, and $1,087.78 of that is interest: the balance falls by only $120.64.