What If I Invested Calculator
What if you invested that money instead?
You spend £5 on coffee every day. You subscribe to £30 of streaming services every month. You spend £60 eating out every week. What would those amounts be worth today if you had invested them instead? This calculator shows the real opportunity cost of your spending habits — and the compounding power of what you could build.
Loading calculator...
How It Works
The Compound Interest Formula
The mathematics behind compound growth — the most important formula in personal finance
Formula
FV = PMT × [((1 + r/n)^(n×t) − 1) ÷ (r/n)] × (1 + r/n)
Variables
Future Value
The total value of your investment at the end of the period — the number shown in the calculator. This includes your original contributions (principal) plus all accumulated compound interest. The difference between FV and your total contributions is your investment profit.
Periodic Payment Amount
The amount you invest at each interval — your daily, weekly, monthly, or annual contribution. In this calculator, this is the spending amount you would redirect from a habit into investments.
Annual Interest Rate (as decimal)
The expected annual return on your investment, expressed as a decimal. A 10% annual return = r = 0.10. The S&P 500 has historically returned approximately 10% per year on average before inflation over long periods — equivalent to approximately 7% after adjusting for inflation.
Number of Compounding Periods Per Year
How many times per year the investment compounds. For daily investments, n = 365; weekly, n = 52; monthly, n = 12; yearly, n = 1. More frequent compounding produces slightly higher returns — daily compounding outperforms monthly compounding by approximately 0.1–0.2% annually at typical rates.
Time in Years
The total investment period in years — calculated from your start date to today. This is the most powerful variable in compound interest: doubling t produces far more than double the final value, because compound interest accelerates over time.
Lump Sum Formula
For a single one-time investment: FV = PV × (1 + r)^t, where PV is the initial amount and t is years invested. A single £1,000 invested at 10% for 20 years = £1,000 × (1.10)^20 = £6,727.
Note: This calculator uses nominal returns (not adjusted for inflation). A 10% nominal return during a 3% inflation period produces approximately 6.8% real return. Toggle the Inflation Adjusted feature to see results in today's purchasing power using a 3% inflation assumption.
Step-by-Step Example: The Daily Coffee
£5 per day on takeaway coffee, started January 1, 2015 (10 years ago), at 10% annual return
Identify the daily investment amount
PMT = £5 per day
Calculate periods per year
n = 365 (daily investment)
Calculate daily interest rate
r/n = 10% ÷ 365 = 0.000274 per day
Calculate total periods
n × t = 365 × 10 = 3,650 days
Apply the compound interest formula
FV = £5 × [((1.000274)^3650 − 1) ÷ 0.000274] × 1.000274
Calculate
FV = £5 × [(2.7183 − 1) ÷ 0.000274] × 1.000274 ≈ £31,399
Calculate total amount actually spent on coffee
Total invested = £5 × 365 × 10 = £18,250
Calculate investment profit from compound growth
Profit = £31,399 − £18,250 = £13,149 of pure compound growth
Reference Guide
| unit | value | note |
|---|---|---|
| After 1 year | £1,922 | £1,825 invested + £97 compound growth |
| After 2 years | £3,945 | Growth accelerating |
| After 5 years | £11,616 | £9,125 invested → £2,491 growth |
| After 10 years | £31,399 | £18,250 invested → £13,149 growth |
| After 20 years | £115,000 | £36,500 invested → £78,500 growth |
| After 30 years | £339,000 | £54,750 invested → £284,250 growth |
Understanding Your Results
What your opportunity cost number actually means
The multiplier shows how many times your original investment would have grown. A 2× multiplier means your money doubled. A 5× multiplier means every pound invested became five. At 10% annual return, money roughly doubles every 7.2 years (the Rule of 72: 72 ÷ interest rate = years to double). Over 30 years, the multiplier approaches 17–20× at 10% return.
Best for: A multiplier above 3× means compound interest has done more work than your contributions. Above 5×, compound interest has significantly outpaced contributions — this is the 'magic' of long-term investing.
The split bar shows the proportion of your final value that came from your own contributions versus compound growth. In the early years, your contributions dominate — the bar is mostly green (principal). Over time, the compound growth (darker) portion grows to exceed your contributions. After 20–25 years at 10%, the majority of your investment value is interest earned on interest — not money you put in.
Best for: When compound growth exceeds principal, you have entered the territory where time is doing more work than money.
Inflation erodes purchasing power over time. The inflation-adjusted result uses a 3% annual inflation assumption — the long-run average for most developed economies. At 3% inflation over 20 years, your future £115,000 is worth approximately £64,000 in today's purchasing power. This is why real returns (nominal return minus inflation) matter more than nominal returns for long-term financial planning.
Best for: For planning purposes, use the inflation-adjusted figure to understand what your future money can actually buy.
The difference between a 7% and 10% return may seem small, but over long periods it is enormous. £200/month invested for 30 years: at 7%, grows to approximately £243,000; at 10%, grows to approximately £452,000 — a difference of £209,000 from just 3% more annual return. This is why investment vehicle selection matters so much for long-term wealth building.
Best for: Use Compare Rates to see how different investment vehicles (savings account vs index fund vs bonds) change your long-term outcome.
The Power of Compound Interest — Einstein's 'Eighth Wonder'
Compound interest is the process by which interest earns interest on itself — creating exponential rather than linear growth. It is the foundational mechanism of long-term wealth building and the reason small, consistent investments made early in life produce dramatically larger outcomes than larger investments made later. The concept is often attributed to Albert Einstein, who is frequently (though probably apocryphally) quoted as calling compound interest 'the eighth wonder of the world. He who understands it, earns it; he who doesn't, pays it.' Whether Einstein said it or not, the mathematics is incontrovertibly powerful. The Rule of 72 provides an intuitive shorthand: divide 72 by your annual interest rate to find the approximate number of years for your money to double. At 6% return, money doubles every 12 years. At 10%, it doubles every 7.2 years. At 12%, every 6 years. The opportunity cost framing — what you gave up by spending rather than investing — was popularised by personal finance writers including David Bach in 'The Automatic Millionaire' (2003), who coined the term 'Latte Factor' to describe small, recurring discretionary spending that, redirected to investment, could produce significant long-term wealth. Bach's calculation that a daily £5 coffee habit could become £1 million over a lifetime (at high return rates over 40 years) has been both influential and controversial — critics note that the return rate assumptions are optimistic and that restricting small pleasures for distant uncertain gains has its own psychological and quality-of-life costs. The calculator does not advocate that you stop buying coffee. It provides the actual opportunity cost calculation — what the mathematics produces — so you can make an informed decision about which tradeoffs matter to you. The insight is not 'coffee is bad.' It is: 'compound interest is powerful, and even small amounts redirected consistently produce surprising long-term results.' Research by Thaler and Benartzi (2004) demonstrated that the most effective mechanism for increasing investment is automation — redirecting spending to investment automatically, before the decision to spend can be made. Their Save More Tomorrow programme produced consistent, significant increases in retirement savings among participants — not by restricting current spending but by directing future raises to savings automatically.
Key Features
💡 Pro Tips
- →The start date is the most powerful variable in this calculator — more than the return rate. Starting 5 years earlier at 10% consistently produces a better outcome than starting today at 15%. Time is the one input you can never get back. The best time to start investing was 10 years ago; the second best time is today.
- →Use the Milestones tab to find your 'crossover point' — the year when compound growth exceeds your total contributions. This is the moment your money starts working harder than you do. For most consistent investment plans at 10%, the crossover occurs between years 10–15.
- →The inflation-adjusted result is more useful for financial planning than the nominal result. A future value of £200,000 in 25 years sounds significant — but at 3% inflation, its purchasing power is equivalent to approximately £95,000 today. Plan using real returns.
- →The S&P 500 10% historical average is a long-run average that includes significant down years (2000, 2008, 2020). In any single decade, actual returns vary widely. For conservative planning, use 7% (which accounts for inflation and historical variance). For optimistic scenario planning, use 10–12%.
- →Use the Compare Rates feature to understand the true cost of a lower-return savings account versus a global index fund. The difference between 4% (savings) and 10% (index) over 20 years on £200/month is approximately £67,000 vs £153,000 — a £86,000 difference in outcome from the same contributions.
Common Mistakes
Assuming past returns guarantee future returns
The S&P 500's 10% historical average (1926–2024) is a long-run average over a specific historical period including wars, depressions, and unprecedented economic growth. Future decades may produce significantly different returns. Use the 10% figure as a benchmark scenario, not a guarantee. Conservative financial planning typically uses 6–7% for long-run projections.
Not accounting for investment fees and taxes
Index fund expense ratios (typically 0.03–0.5% annually), platform fees, and capital gains taxes all reduce actual returns. A fund with a 0.5% annual expense ratio reduces a 10% return to 9.5% — which, over 30 years on £200/month, reduces the final value by approximately £40,000. Use a net-of-fees return estimate for more accurate planning.
Treating the calculator as a reason to deprive yourself of all small pleasures
The opportunity cost calculation shows what could theoretically be achieved. It does not account for the present value of enjoyment, mental health benefits of small treats, social connection over coffee or meals, or the psychological sustainability of extreme frugality. The insight is about awareness and intentional choice — not about eliminating all discretionary spending.
Calculating from too long ago with unrealistic assumptions
Calculating what your coffee spending would be worth if invested since age 18 produces striking numbers — but investing that money consistently for 20+ years at 10% requires sustained discipline, market exposure through downturns, and no withdrawal. Use the calculator for realistic timeframes and realistic rate assumptions for genuine financial planning.
Confusing nominal and inflation-adjusted returns
A 10% nominal return during 3% inflation is a 6.8% real return. Over 30 years, this difference is enormous. Always use the inflation-adjusted figure when evaluating what future wealth means in practical terms — what can you actually buy with it. Enable the Inflation Adjusted toggle for any planning use case.
Research & Citations
All factual claims on this page are sourced from peer-reviewed research
- [1]
Shiller, R.J. (2023). S&P 500 Historical Annual Returns Data. Robert Shiller Online Data (Yale).
Primary source for S&P 500 historical return data used to calibrate the 10% annual return benchmark
View source - [2]
Bach, D. (2003). The Automatic Millionaire: A Powerful One-Step Plan to Live and Finish Rich. Broadway Books.
Original source of the 'Latte Factor' concept that popularised opportunity cost calculators
- [3]
Thaler, R.H., Benartzi, S. (2004). Save More Tomorrow: Using Behavioral Economics to Increase Employee Saving. Journal of Political Economy, 112(S1), pp. S164–S187.
Research on automated saving mechanisms — demonstrates that automatic investment redirection is more effective than willpower-based saving
View source - [4]
Bogle, J.C. (2007). The Little Book of Common Sense Investing. Wiley.
Source for the impact of fund fees on long-term returns and index fund investment rationale — basis for expense ratio guidance
- [5]
Lusardi, A., Mitchell, O.S. (2014). The Economic Importance of Financial Literacy: Theory and Evidence. Journal of Economic Literature, 52(1), pp. 5–44.
Research on financial literacy and compound interest understanding — highlights why opportunity cost calculators have educational value
View source
This calculator is a reference tool and does not constitute medical advice. For personalised sleep health guidance, consult a qualified healthcare provider.
Last updated: February 12, 2025

Creators
Computer Scientist
Reviewers
Scientific Reviewer
Table of Contents
Quick Facts
Related Tools
Privacy Guaranteed
Your data never leaves your browser. All calculations are 100% private.
Frequently Asked Questions
What is opportunity cost in investing?
Opportunity cost is the value of the best alternative you give up when making a choice. In personal finance, when you spend £5 on coffee, the opportunity cost is not just £5 — it is what £5 invested today would be worth in the future through compound growth. If £5 invested daily grows to £31,000 over 10 years at 10% return, the opportunity cost of 10 years of daily coffee is approximately £31,000 — not £18,250 (the total cash spent).
What would I have if I had invested £200 per month?
At 10% annual return: after 5 years, approximately £15,500; after 10 years, approximately £41,000; after 20 years, approximately £153,000; after 30 years, approximately £452,000. At 7% return: after 30 years, approximately £243,000. The variation by return rate is enormous over long periods — use our calculator with your specific start date and rate for a precise figure.
How does compound interest work?
Compound interest means you earn interest on your interest — not just on your original principal. In year 1, you earn interest on your deposit. In year 2, you earn interest on your deposit plus the interest from year 1. This creates exponential growth rather than linear growth. The Rule of 72 gives you the doubling time: divide 72 by your annual rate. At 10%, money doubles every 7.2 years. A single £1,000 investment at 10% becomes £2,000 after 7.2 years, £4,000 after 14.4 years, £8,000 after 21.6 years.
What return rate should I use for my calculations?
For conservative, realistic planning: use 6–7% (which accounts for inflation and typical balanced portfolio returns). For a benchmark scenario: use 10% (the S&P 500's long-run historical average before inflation). For optimistic growth scenarios: use 12–15% (which represents strong equity market performance). Never plan for double-digit returns as a guaranteed baseline — markets fluctuate significantly and past performance does not guarantee future returns.
Is the latte factor real?
The 'Latte Factor' — the idea that small daily spending redirected to investment produces significant long-term wealth — is mathematically real but behaviourally nuanced. The mathematics is accurate: £5/day invested at 10% for 40 years produces approximately £1 million. However, critics note that: (1) 10% is an optimistic long-run assumption; (2) sustained 40-year investing discipline is rare; (3) restricting small daily pleasures has psychological costs; and (4) other factors (income, housing costs, major expenses) have far larger impact on wealth than daily coffee. The insight is real — compound interest is powerful — but so is the nuance.
What is the S&P 500 historical average return?
The S&P 500 has returned approximately 10% per year on average (nominal) from 1926 to 2024 — or approximately 7% after adjusting for inflation. This is a long-run average that includes some of the worst market crashes in history (Great Depression, 2000 dot-com crash, 2008 financial crisis, 2020 COVID crash) as well as the longest bull markets in history. Any single decade can deviate significantly from this average — the 2000s produced near-zero returns; the 2010s produced 13%+ annually. Use 10% as a historical benchmark, not a prediction.