Compoundify › How we calculate
How Our Calculators Work
Every calculator here is plain arithmetic. This page lists the formulas behind the main tools, the conventions they follow and the rules built in, so you can check any result by hand or in a spreadsheet.
Last reviewed November 19, 2026. Results are hypothetical estimates, not forecasts or guarantees. See Accuracy and limits for what the numbers can and cannot tell you.
Conventions used everywhere
- Annual to monthly rate. A yearly rate r that compounds n times a year becomes a monthly rate with the formula below. With monthly compounding (n = 12) this is simply r ÷ 12.i = (1 + r/n)^(n/12) − 1
- Timing. Money you add each month goes in at the end of the month, after that month’s growth. Payments on loans are made at the end of each period.
- Constant assumptions. A return, rate or inflation figure you enter is applied unchanged for the whole period. Real markets and real rates move around.
- Rounding. Calculations keep full precision and are rounded only when displayed.
- No hidden extras. Taxes, fees and inflation are included only when a calculator asks for them.
Growth and saving
Compound interest and investment growth
Starting from your opening balance, each month the balance is multiplied by (1 + i) and then your monthly deposit is added. Interest earned is the final balance minus everything you put in.
Savings goal
To reach a target T from a starting amount S over N months at monthly rate i, the monthly amount needed is below. If the rate is zero it is just (T − S) ÷ N, and it never goes below zero.
Doubling time and the Rule of 72
The exact time to double at annual rate r percent, the quick estimate, and the return needed to double in y years:
Inflation
With yearly inflation i over y years, the same purchase costs more and the same money buys less:
Borrowing
Loan payment
For a loan of P over n monthly payments with the annual rate divided by 12 as i:
If the rate is zero, the payment is P ÷ n. This is the same calculation as the PMT function in a spreadsheet.
Amortization schedule and extra payments
Each period, interest is the current balance × i, and the rest of the payment reduces the balance. The final payment is capped at what is still owed. An extra payment is added to every regular payment and goes entirely to principal, which shortens the schedule and cuts total interest.
Debt payoff (snowball and avalanche)
Each month, interest (balance × APR ÷ 12) is added to every debt and every minimum payment is made. Your total monthly budget is the sum of the minimums plus any extra, and it stays fixed, so the minimum on a debt you have cleared rolls into the next one. Whatever is left after the minimums goes to one target debt: the smallest balance for the snowball method, or the highest APR for the avalanche method.
Credit card payoff
Each month, interest (balance × APR ÷ 12) is added, then a payment is made. In minimum-payment mode the payment is the greater of a fixed floor and a percentage of the balance. In fixed mode it is the amount you choose. If a fixed payment does not even cover the first month’s interest, the calculator reports that the balance will never be paid off.
Mortgages
- Compounding. US mortgages compound monthly, so the monthly rate is the annual rate ÷ 12 and the payment comes from the loan formula above.
- Payment frequency. You can choose monthly payments or bi-weekly payments. Bi-weekly means half of the monthly payment every two weeks, which is 26 payments a year, and it uses its own periodic rate.
- Private mortgage insurance (PMI). If your down payment is under 20% and you enter a PMI rate, the monthly PMI cost is the loan × the PMI rate ÷ 12. It is shown until the loan balance falls to 80% of the purchase price.
- Constant rate. The rate you enter is used for the whole amortization. Real mortgages usually renew at a new rate partway through.
Home affordability
Two guideline limits are applied to gross monthly income: housing costs of at most 28% and total debt payments of at most 36%. The cap is the smaller of 28% of income and 36% of income minus your other debts. The calculator then solves for the largest loan whose payment, plus property tax and other housing costs, fits under the cap, and adds your down payment to get a price.
Retirement and independence
FIRE number and years to get there
Yearly spending is income × (1 − savings rate). The target is yearly spending ÷ the withdrawal rate. Each month the balance grows by the monthly return and your savings (income × savings rate ÷ 12) are added, until the balance reaches the target. If that takes more than 100 years, the calculator reports that the target is not reached.
Retirement projection
Your balance grows monthly with contributions, and contributions rise each year by the step-up you enter. Values are also shown in today’s money by dividing by (1 + inflation)^years. Needed savings are (yearly spending − other income) ÷ withdrawal rate, in today’s money.
Withdrawal simulator
Year 1 withdrawal is the starting balance × the withdrawal rate. Each year, the withdrawal is taken, the remainder grows by the return you enter, and the next withdrawal is raised by inflation. The simulation stops when the money runs out or after 60 years.
Investment fees
The net return is the gross return minus the fee, converted to a monthly rate with the formula at the top of this page. Two funds are then grown side by side with the same starting amount and deposits, so the gap is the cost of the fee difference.
Rules and figures we build in
A few calculators rely on rules that organizations set and can change. Tax estimates use 2026 figures. Always confirm current figures with your lender, and with the IRS for tax rules and retirement-account limits.
Worked examples you can check
Try these in the calculators, in a spreadsheet, or with a scientific calculator.
- Compound growth. $10,000 at 6% compounded monthly for 10 years, with no deposits, is 10,000 × 1.005^120 = $18,193.97. Adding $200 a month raises the final balance to $50,969.84.
- Loan payment. A $250,000 loan at 5% over 25 years with monthly payments has a payment of $1,461.48 and total interest of about $188,443.
- Fees. $10,000 growing for 30 years at a 6% gross return ends at about $53,507 with a 0.25% fee (net 5.75%) and about $37,453 with a 1.50% fee (net 4.5%).
- Rule of 72. At 8%, the estimate is 72 ÷ 8 = 9.0 years and the exact answer is 9.006 years.
- US mortgage. A $600,000 home with 10% down ($60,000), a 5% rate and a 25-year term has a $540,000 loan and a monthly payment of $3,156.79. At a 0.5% PMI rate, PMI adds $225 a month.
Questions
Think a formula is wrong, or want another calculator explained here? Read Accuracy and limits, then write to contact@compoundify.org. Compoundify is an educational project, and nothing here is financial, tax or legal advice.