Compound Interest Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
Compound interest is interest earned on the interest already added, so a balance grows faster the longer it is left alone. This calculator follows a starting amount period by period: at each compounding date the interest is added to the balance, and any contribution or withdrawal you have set is applied at the start or end of the period. The result is a balance for every year, a total for the money you put in and the interest it earned, and an optional figure in today's money once inflation is taken out.
It covers what a single formula cannot: compounding daily, quarterly or semi-annually while deposits arrive monthly, a yearly raise in what you save, and a withdrawal plan that runs until the balance is empty. Every amount and rate field is read by one strict rule: commas only separate thousands, so 6,5 is turned away with a message asking for 6.5 rather than being guessed as 65.
Key features
- Daily, monthly, quarterly, semi-annual or annual compounding, with the effective rate per contribution period shown beside the result
- Monthly or yearly contributions or withdrawals at the start or end of each period, with an annual raise
- Withdrawal plans that report the year and month the money runs out
- Inflation-adjusted balance and a real-value column for every year
- A yearly table, a stacked chart and a summary of final balance, total contributions or withdrawals, interest and real value
- An XLSX with live formulas that recalculate when you change the starting amount, rate, compounding, regular amount, raise, timing or inflation, and a CSV of the yearly table
Compounding periods, contribution timing and inflation
A plan has seven inputs. The starting amount and the annual rate (0 to 100 percent) come first, then the term: whole years, plus a month count from 0 to 11, up to 100 years. Compounding is daily, monthly, quarterly, semi-annual or annual. The regular flow is money in or money out, an amount every month or every year, placed at the start or end of each period, with an optional yearly raise from minus 50 to 50 percent. Inflation, from minus 10 to 50 percent, only affects the real-value column. Money fields accept two decimal places at most, and commas are allowed only as thousands separators: 10,000 and 1,250,000.50 pass, while a comma used as a decimal point is refused.
Compounding and the regular flow run on their own schedules, and the page reconciles them one way. If the two line up, the rate for each period is the annual figure divided by the periods in a year. If they differ, each contribution period is credited with (1 + r/m)^(m/p) - 1, with r the annual rate, m the compounding count and p the contribution count. Daily compounding with monthly deposits therefore gives each month (1 + 0.05/365)^(365/12) - 1, or 0.4175% on a 5% nominal rate.
The yearly table shows the start balance, the money added or taken out in that year, the interest earned, the end balance, and the real value: the end balance divided by (1 + inflation) raised to the years elapsed. A term that ends part-way through a year, or a yearly plan with a stub of months, gets its own row labelled with the number of months. If a withdrawal would take the balance below zero, the last withdrawal takes what is left and the table stops, naming the year and month in which the money ran out.
The chart is a stacked bar for each year-end balance. For contributions it splits the balance into the starting amount, the money you added and the interest. For withdrawals it splits the balance into the money still invested from the starting amount and the interest, which is the part of what is left that the plan has not drawn down. Hovering over the chart, or focusing it and using the arrow keys, reads out the split for a year.
How it works
A period's interest is the balance, plus any start-of-period amount, multiplied by the rate for that period. The rate for a period of L years is (1 + r/m)^(m x L) - 1, so a full contribution period of one month on a 5% rate compounded monthly earns 0.4167%. The same figures are not rounded inside the calculation, only when they are shown, so the results match the standard future-value formulas to the cent.
A start-of-period contribution earns that period's interest; an end-of-period one does not, and so is added after the interest is calculated. Withdrawals work in the opposite direction. A withdrawal never takes more than the balance holds, and when the balance reaches zero the calculation stops and reports the year.
The annual raise applies to every contribution in a year: a 100 a month amount with a 3% raise is 100 in year 1, 103 in year 2 and 106.09 in year 3. A yearly plan with a stub of months grows the stub for those months, and a stub that starts with a contribution at the start of the year takes it at the start of the stub.
When to use it
- Seeing how a 10,000 lump sum and 200 a month grow over 25 years before choosing between two savings accounts with different compounding
- Working out how far a raise of 3% a year on a 150 monthly pension contribution changes the balance at 65
- Testing a retirement plan that draws 3,000 a year from a pot and checking how many years the pot lasts at a given return
- Comparing a 4% account that pays monthly with one that pays annually, once the same monthly deposits are included
- Checking the real value of a savings goal, so a target set in today's money can be compared with the nominal figure in the future
Inputs
- Type the starting amount and the annual rate, then the term in years and months.
- Choose the compounding frequency. Savings accounts are often daily or monthly; bonds and many deposit accounts are semi-annual or annual.
- Choose contributions or withdrawals, then the amount, whether it is monthly or yearly, and whether it is made at the start or end of each period.
- Add a yearly raise if the amount grows each year, and an inflation rate if you want the figure in today's money.
- Read the summary, then check the yearly table and the chart. If withdrawals run out, the note above the summary says in which year.
- Download the XLSX to change the numbers in a spreadsheet, or the CSV for the yearly table alone.
Worked example
10,000 at 5% compounded monthly for 10 years, with 100 added at the end of each month
Starting amount 10,000
Annual rate 5%
Term 10 years, 0 months
Compounding Monthly
Contribution 100 every month, at the end
Raise 0%
Inflation 2%Results
Final balance 31,998.32
Total contributions 12,000.00 added to the 10,000 starting amount
Total interest 9,998.32
In today's money 26,249.77 at 2% inflation over 10 years
The same plan with the contribution at the start of each month: 32,063.02.
The starting amount alone, compounded daily instead of monthly: 16,486.65 (against 16,470.09 monthly).Tips for best results
- Start-of-period contributions finish about 0.2% higher than end-of-period ones on a monthly 5% plan over ten years, because each deposit earns an extra month of interest. On the example above that is 64.70.
- Compare the effective annual rate, not the nominal rate, when two accounts use different compounding. The summary shows the effective yearly rate under the figure for total interest.
- Use a withdrawal plan to find out how long a pot lasts. Setting the rate to 0% shows the simplest case: 10,000 with 3,000 taken each year is gone in year 4, with 1,000 taken from it that year.
- In the XLSX, change the rate cell to test a different return; every yearly row, including real values, recalculates. Changing the term or the contribution frequency means downloading a new file, because those set how many rows exist.
Limits
The calculator assumes a fixed rate and a fixed inflation rate for the whole term. Real returns on shares, funds or variable-rate accounts move around, and a steady average rate can hide years where the balance falls. A sequence of poor early years matters most in withdrawal plans, and this calculator does not model it.
Tax, fees, charges and minimum balances are not included. An account that charges 0.5% a year will return less than the rate typed in, and interest taxed each year leaves less to compound. Subtract those costs from the rate yourself before reading the result as a real outcome.
The result is only as accurate as the compounding and timing you choose. A bank that credits interest on the last day of the month, or on a daily balance with a different day count, will show figures that differ by small amounts from the ones here.
A yearly raise applies from year 2 by design, so a raise typed for a plan starting now does not change year 1. The calculator has one contribution amount for the whole term, apart from the yearly raise, so a mid-plan change to the amount cannot be modelled directly.
Best practices
- Enter the rate the account actually pays after fees, and set the compounding to the account's own schedule.
- Test a plan at two or three rates around your expectation, rather than trusting one figure.
- Keep inflation at a realistic figure for the decision you are making, and read the real-value column as the spending power of the money in today's terms.
What the XLSX formulas recalculate, and what they do not
The Calculator sheet holds the inputs in blue cells: the starting amount (B4), annual rate (B5), compounding periods per year (B6), the contribution or withdrawal per period (B7), the yearly raise (B8), the timing (B9, where 1 means start of period and 0 means end) and the inflation rate (B10). Changing any of these recalculates the Periods sheet, which holds one row per contribution period, and the yearly table on the Calculator sheet, which adds those rows up. The final balance, total, interest and real value update with them.
The term in months (B11), the number of periods per year (B12) and whether the flow is a contribution or a withdrawal (B13) are fixed in the file, because they decide how many rows exist and how far apart they are. To change one of those, change it on the page and download the workbook again. The CSV contains values only and does not recalculate.
What the calculator does not model
It does not model tax, inflation that changes from year to year, returns that vary, fees taken from the balance, or contributions that change partway through a plan other than by the yearly raise. It does not account for the day count of a bank's interest, which can give slightly different figures from a monthly rate. Each of these would need its own input before a result is a forecast rather than an illustration.
Withdrawals are taken at the stated timing and do not stop at a set age or a set date. The calculator reports when the money runs out in this model; it does not say whether a real plan with changing returns would last as long.
Where the figures go, and what the page keeps
Every number you type is read by script already loaded in this tab. The schedule, the balance table, the chart and the XLSX are produced in the tab as well: the workbook is assembled in memory and handed to your browser as a download. No request carries the figures, and the page holds them only while it is open, so a reload starts again from the default plan.
Frequently asked questions
How much does daily compounding add over monthly on 10,000 at 5% for 10 years?
Monthly gives 16,470.09 and daily gives 16,486.65, a difference of 16.56 on the starting amount alone, with no contributions.
Why is the start-of-period result higher when the amount is the same?
A start-of-period contribution earns that period's interest. With no starting amount, 100 a month for 10 years at 5% monthly gives 15,528.23 with each payment at the end of the month and 15,592.93 with each at the start. Adding the 10,000 starting amount gives 31,998.32 and 32,063.02.
Why does the withdrawal table stop early?
The table stops at the moment the balance reaches zero: at the start of the period when withdrawals are taken at the start, or at the end when they are taken at the end. The note above the summary gives the year and month. Reduce the withdrawal or the term to see a plan that lasts.
Why won't it accept 6,5 for the rate?
Commas are read only as separators between groups of three digits, so 6,5 could mean 65 or 6.5. The calculator asks for a dot, so type 6.5.
Does the real value include the effect of contributions?
Yes. Each year's end balance, including every contribution made up to that point, is divided by (1 + inflation) raised to the years elapsed. The figure is the balance in today's money at that date.