Calcs.finance

investment calculator

Investment Calculator

The Investment Calculator is a fixed-assumption goal solver. It can project an ending balance, or work backward to estimate the contribution amount, return rate, starting amount, or investment length that reaches a target end amount. The page models a starting amount, one regular contribution amount, monthly or yearly contribution frequency, beginning or end contribution timing, an assumed return rate, a compounding frequency, and a term in years.

Your scenario

Enter your numbers

Help
Solve for
Compound frequency
Contribution frequency
Contribute at

Result

Solved value
End amount = $201,086.68
Ending balance
$201,086.68
Starting amount
$20,000.00
Additional contribution
$1,000.00
Return rate
6.00%
Investment length in years
10
Total contributions
$120,000.00
Total interest
$61,086.68

Working scenario

New scenario

Not saved yet

Compare

Saved scenarios

Compare saved versions

Compare

Save this result, then use saved scenarios to switch between assumptions.

How the Investment Calculator works

Use this calculator when you want to test one constant-rate scenario and see which input would need to change to reach a target. Use Future Value for a simpler period-based deposit projection, Finance for broader time-value-of-money solves, Compound Interest for annual principal-only growth, ROI or Average Return for measuring past returns, Mutual Fund for fee examples, Savings for deposit-account style estimates, and Retirement for retirement-specific planning. Use Investor.gov, SEC, FINRA, IRS, FCA, MoneyHelper, provider, prospectus, fee-disclosure, tax-authority, deposit-insurance, inflation-statistics, legal, or local regulator sources before making investment-product, tax, retirement-plan, insured-deposit, inflation-adjusted, legal, product-specific, or jurisdiction-specific claims.

The calculator runs a month-by-month simulation. It rounds years * 12 to total months, converts the nominal return rate to an effective monthly rate from the selected compoundFrequency, and starts with startingAmount. Monthly contributions are eligible every month. Yearly contributions are eligible only when month > 1 and (month - 1) % 12 === 0, so the first yearly contribution happens after the first 12 modeled months. Beginning contributions are added before that month's growth; end contributions are added after that month's growth. End amount is the final balance. Total contributions are the regular contributions added during the simulation. Total interest equals ending balance minus starting amount minus total contributions. If Solve for is contribution amount, starting amount, return rate, or investment length, the app bisects the selected value until the simulated ending balance reaches the target end amount. Contribution and starting amount solves search from 0 to max(1000, targetEndAmount), return-rate solve searches from -99.999% to 1000%, and investment-length solve searches from 0 to 100 years.

Investment Calculator formula

This formula page covers the app's Investment Calculator: a deterministic goal solver for one starting amount, one fixed return assumption, one contribution stream, selected contribution timing, and a selected solve mode. It reports the solved value, ending balance, starting amount, contribution amount, return rate, investment length, total contributions, and total interest. It does not model market volatility, fees, taxes, inflation, product terms, advice suitability, regulated performance, or personalised decisions.

M = round(Y * 12); m = continuous ? e^(R / 100 / 12) - 1 : (1 + R / 100 / C)^(C / 12) - 1; c_t = monthly or (yearly and t > 1 and (t - 1) % 12 === 0); B_t = (B_(t-1) + PMT_begin,t) * (1 + m) + PMT_end,t; EB = B_M; TC = sum(PMT_t); TI = EB - SA - TC; solve x by bisection until EB(x) reaches T

The calculator converts the entered annual return into an effective monthly rate, walks the balance month by month, applies contributions before or after growth depending on the timing input, and uses bisection when the selected solve mode needs a contribution, starting amount, return rate, or investment length that reaches a target ending balance.
SymbolMeaningHow this page uses it
SFSolve modeThe selected target: end amount, contribution amount, return rate, starting amount, or investment length.
TTarget end amountThe ending balance target used when solving contribution amount, return rate, starting amount, or investment length.
SAStarting amountThe balance at month 0 before scheduled contributions begin.
RAnnual return assumptionThe Return rate field as a nominal annual percentage. It is a fixed scenario input, not a market forecast or product rate.
CCompound periods per yearThe selected compounding count: 1 annual, 2 semiannual, 4 quarterly, 12 monthly, 24 semimonthly, 26 biweekly, 52 weekly, or 365 daily. Continuous compounding uses the separate exponential branch.
YInvestment lengthThe entered investment length in years.
MTotal monthsInvestment length converted with round(Y * 12). This rounded month count drives the simulation.
mEffective monthly rateThe monthly growth rate implied by the annual return and compound frequency, including the continuous-compounding branch.
PMTContribution amountThe level additional contribution used on each selected monthly or yearly contribution date.
fContribution frequencyMonthly contributions happen every month. Yearly contributions happen only when t > 1 and (t - 1) % 12 === 0.
dContribution timingBeginning contributions are added before monthly growth; end contributions are added after monthly growth.
B_tBalance after month tThe simulated balance after any scheduled contribution and growth for month t.
EBEnding balanceThe final simulated balance after M months.
TCTotal contributionsThe sum of scheduled contributions added during the month loop. It excludes the starting amount.
TITotal interestEnding balance minus starting amount minus total contributions. It is a formula output, not a tax result, statement interest figure, or guaranteed return.
SVSolved valueThe display string for the selected solve mode, such as End amount, Contribution amount, Return rate, Starting amount, or Investment length.

Step by step

  1. Read solve mode, target end amount, starting amount, return rate, compound frequency, years, contribution amount, contribution frequency, and contribution timing from the calculator inputs.
  2. Convert investment length to a whole month count with M = round(Y * 12).
  3. Convert the nominal annual return into an effective monthly rate. Continuous compounding uses m = e^(R / 100 / 12) - 1.
  4. For non-continuous compounding, map the frequency to periods per year and use m = (1 + R / 100 / C)^(C / 12) - 1.
  5. Start the simulated balance at the starting amount.
  6. For each month t from 1 through M, decide whether a contribution happens. Monthly frequency contributes every month. Yearly frequency contributes only when t > 1 and (t - 1) % 12 === 0.
  7. If contribution timing is beginning and a contribution happens, add PMT to the balance and to total contributions before applying monthly growth.
  8. Apply monthly growth by multiplying the current balance by 1 + m.
  9. If contribution timing is end and a contribution happens, add PMT to the balance and to total contributions after monthly growth.
  10. After the final month, set ending balance to the simulated balance, total contributions to the accumulated contribution sum, and total interest to ending balance minus starting amount minus total contributions.
  11. When solve mode is end amount, the solved value is the simulated ending balance from the entered inputs.
  12. When solve mode is contribution amount, bisection searches from 0 to max(1000, target end amount) for the contribution that reaches the target.
  13. When solve mode is starting amount, bisection searches from 0 to max(1000, target end amount) for the starting balance that reaches the target.
  14. When solve mode is return rate, bisection searches from -99.999 percent to 1000 percent for the annual return assumption that reaches the target.
  15. When solve mode is investment length, bisection searches from 0 to 100 years for the length that reaches the target.
  16. Round displayed currency outputs to two decimals after simulation and format the selected solved value for the result panel.
  17. Use official or primary sources before turning this generic fixed-return goal math into real investment returns, product performance, fees, tax treatment, retirement planning, regulated investment values, accounting-standard valuation, lending, legal, inflation-adjusted, or jurisdiction-specific guidance.

Worked example

Default examples: ending balance and solve modes

These examples use the current app fixtures and Scoped independent comparator checks replay scenarios. They illustrate deterministic goal-solver mechanics, not real investment performance.

  1. End-amount fixture: SA = $20,000, R = 6 percent, monthly compounding, Y = 10, PMT = $1,000, monthly frequency, and beginning timing.
  2. The app rounds 10 years to 120 months and uses a 0.5 percent effective monthly rate because monthly compounding has 12 periods per year.
  3. With beginning timing, the first $1,000 contribution is added before month 1 growth, and the same pattern repeats every month.
  4. The simulated ending balance is $201,086.68. Total contributions are $120,000.00, and total interest is $61,086.68.
  5. Contribution-solve fixture: with the same starting amount, return, compounding, length, monthly beginning schedule, and a $200,000 target, bisection solves the monthly contribution as $993.40.
  6. That contribution-solve fixture reports total contributions of $119,208.24 and total interest of $60,791.76.
  7. Starting-amount validation fixture: T = $250,000, R = 5.5 percent, monthly compounding, Y = 12, PMT = $750, monthly frequency, and end timing.
  8. Bisection solves the starting amount as $50,474.76. The replay keeps the target ending balance at $250,000.00, with $108,000.00 of contributions and $91,525.24 of total interest.
  9. Return-rate validation fixture: T = $100,000, SA = $25,000, Y = 8, PMT = $500, monthly frequency, and end timing.
  10. Bisection solves the app's annual return assumption at about 5.69 percent. The replay reaches $100,000.00 with $48,000.00 of contributions and $27,000.00 of total interest.
  11. The examples show fixed-return calculator mechanics, not an investment recommendation, product quote, tax answer, retirement plan, accounting measurement, guarantee, or personalised advice.

The Investment Calculator is useful for seeing how one fixed return assumption, one contribution schedule, and one solve target interact. It should be read as a scenario model, not as a forecast of market returns or a recommendation.

Assumptions and what this calculator ignores

Geographic scope: works globally. The math is currency-agnostic, so enter amounts in your own currency; local taxes, fees, and product rules are not included.

What this formula does not include

Common mistakes to avoid

Key terms

Target end amount
The goal balance used when the calculator works backward from a target. It is the destination for contribution, starting-amount, return-rate, and investment-length solves.
Effective monthly rate
The monthly growth rate derived from the entered nominal return and compounding frequency. The simulation applies this rate each month before or after eligible contributions depending on timing.
Solved value
The input the calculator estimated from the other entered assumptions. It may be end amount, contribution amount, return rate, starting amount, or investment length.

Frequently asked questions

What can this investment calculator solve for besides the end amount?

Any one of five unknowns: ending balance, required starting amount, required contribution, required return rate, or required years - the other four become inputs. Asking 'what monthly contribution reaches $200,000 in 10 years from $20,000 at 6 percent' is one bisection solve. That goal-seeking is what separates it from projection-only calculators, and each solved value is reported alongside the full contribution and interest breakdown.

How are monthly versus yearly contributions timed in the simulation?

The simulation steps monthly. Monthly contributions land every month at your chosen beginning or end timing; yearly contributions land after each full year boundary passes. Beginning-of-period contributions earn that period's growth, end-of-period ones do not - over a decade of contributions the timing choice alone shifts the outcome measurably, and flipping the setting shows exactly how much for your numbers.

Should I read the solved return rate as achievable?

Read it as a requirement, not a plan. When rate is the unknown, the answer is whatever fixed return makes your goal arithmetic work - the calculator has no opinion on whether markets deliver it. A solved rate well above long-run asset-class returns is the model telling you to raise contributions, extend the timeline, or shrink the target. Volatility and sequence risk are not modeled at all.

Methodology, sources, and disclaimer

This calculator is an original five-way goal solver (end amount, starting amount, contribution, rate, or years) over a monthly simulation with selectable compounding and contribution frequency and timing, using bisection for inverse solves, validated by deterministic fixtures. It is not copied from a single source.

Fixtures pin every solve target and the yearly-contribution boundary convention. The result remains an educational estimate, not a market forecast or an attainability claim for the solved rate.

Formula version 2026.05.21-generic-investment-goal-solver. The version marks the calculation logic and validation fixture set used for this estimate.

Results are educational estimates, not advice. Read the full disclaimer.

Related reading

When another calculator fits better

investment

Present Value Calculator

Discount a future lump sum or a stream of equal periodic deposits back to today's value.

investment

Finance Calculator

Solve one time-value-of-money variable from periods, rate, present value, periodic payment, and future value.

investment

ROI Calculator

Estimate return on investment, gain or loss, and annualized return from investment amounts and time held.

investment

Average Return Calculator

Estimate annualized return from account cash flows or from several holding-period returns.

investment

Mutual Fund Calculator

Estimate mutual fund ending value, net return, investor IRR, and the drag from sales charges and operating expenses.

retirement

Retirement Calculator

Estimate retirement savings needs, savings required, monthly withdrawal capacity, and how long savings may last.

savings

Savings Calculator

Estimate savings growth from an initial deposit, growing contributions, interest, compounding, and tax drag.