Investment explained: formula, worked example and common mistakes
A start amount, monthly or yearly contributions, one-off amounts in or out, and a yearly return, with your own money counted apart from growth. Free, no sign-up.
Updated
What the investment calculator works out
Where a pot ends up after years of growth, regular contributions and the odd one-off. You type an amount at the start, a contribution and its frequency, a yearly return, a number of years, and any one-off amounts — money added in a given year, or taken out.
The page returns the value at the end and splits it two ways: your own money in total against growth. That split is the honest read of a long run, because the end value alone says nothing about how much of it was earned by money that was only there for part of the time.
The formula
Monthly rate = (1 + r)^(1/12) - 1 the yearly return spread across months
End value = the start grown for all the years
+ each contribution grown from the month it lands
+ each one-off amount grown from its year, minus if taken out
r is the yearly return typed as a percentage. The conversion on the first line matters: money paid in monthly is invested for part-years, and the monthly rate counts each month at its fair share of the yearly return. One-off amounts carry a year and a signed amount — added if positive, taken out if negative — and grow only for the years after they land.
A worked example
10,000 at the start, 500 a month, a 7 per cent yearly return, 20 years, with 10,000 added in year 3 and 25,000 taken out in year 12.
Monthly rate = (1 + 7%)^(1/12) - 1 = 0.5654%
Money paid in = 10,000 + (500 x 240) + 10,000 = 140,000
Taken out in year 12 = 25,000
Value at the end = 281,099
Growth = 281,099 - 140,000 + 25,000 = 166,099
The run ends at 281,099. Of that, 140,000 is money paid in and 166,099 is growth, after the 25,000 taken out in year 12.
What changes the answer
The years matter more than anything, because growth compounds: the last few years of a long run add more than the first few did. The return sets the pace, and small changes in it swing a long run widely. Contributions are steadier — each one grows from its own month, so raising them lifts the end value nearly in step. One-off amounts cut both ways: the 10,000 added in year 3 has seventeen years to grow, while the 25,000 taken out in year 12 takes away both the money and everything it would have earned after.
When to use it, and when not to
Use it to size a long run: what a start amount plus a monthly figure becomes at a return you type, what a one-off withdrawal costs down the line, or how the split between your own money and growth moves as the years pass. It also reads a run backwards — type a withdrawal early and the end value shows its full cost in growth forgone.
It models one level return and nothing else. Charges, tax, inflation and any sequence of good and bad years are outside it, and nothing statutory or institutional is stored anywhere on the page. The return you type is a net figure if you type it net, and the page holds no view on what the return of any holding might be — that is a figure you bring with you.
Common mistakes people make
1. Typing the return gross and reading the end value as spendable. Charges and tax come off a real run somewhere. If they will come off yours, type a return that already carries them.
2. Reading growth as profit on today’s money. Growth is 166,099 here, but 140,000 of the pot is contributions. The split row exists so the two are never confused.
3. Forgetting the minus on money out. A withdrawal typed without its sign adds to the pot instead of taking away, and the end value jumps the wrong way.
4. Expecting contributions to match the growth. Each contribution grows only from its own month. A contribution in the final year earns almost nothing by the end.
5. Ignoring what a withdrawal costs in growth. The 25,000 taken out in year 12 takes with it every year of growth it would have earned after. The page counts that; a mental subtraction does not.
6. Comparing runs with different timings. Start-of-month and end-of-month contributions differ by one month of growth on every payment. Keep the switch in the same position when comparing two runs.
Frequently asked questions
Why does the page convert the yearly return to a monthly rate?
Because money added in March works for less of the year than money added in January. The monthly rate is the yearly return spread fairly across the months, so each contribution grows from the month it lands.
How do one-off amounts work?
Type a year and an amount, as many pairs as needed. A positive amount is money added in that year; a minus in front takes money out. The worked example adds 10,000 in year 3 and takes 25,000 out in year 12.
What counts as your own money?
Everything paid in: the start amount plus every contribution. Money taken out is not subtracted from it, so growth reads as the end value less your own money plus whatever came out.
Does the return stay level for the whole run?
Yes. One yearly return is applied across all the years. A return that changes needs the run split into pieces, or a different tool for the sequence.
What is the difference between contributions at the start and at the end?
Timing. At the start, each contribution grows for the month it lands in as well; at the end it begins the month after. The same switch appears on the interest page.
What does the page leave out?
Charges, tax and inflation. The return you type is the return the page uses, so type it net of whatever would be taken off if net growth is what you want to see.
This tool shows math, not advice.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “Investment Calculator”. Updated 2026-10-31. https://investmentmathcalculator.com/guides/investment-calculator/
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.