How to use this calculator
- Enter Principal ($)。
- Enter Annual rate (%)。
- Enter Target amount ($)。
Leave any field blank and the calculator solves for it from the remaining values — every quantity is reversible.
The calculator then returns: Years required。
What is it
Compounding Periods Finder — Enter Principal, Annual rate and Target amount to get Years required — or leave any field blank to solve for it. Investment calculators quantify the time value of money, returns and risk, turning a vague sense of "this will do well" into comparable numbers. The core question it answers is: Years required. With Principal = 10,000 $, Annual rate = 6 % and Target amount = 20,000 $, Years required is 11.9 years.
Formula
| Variable | Inputs | Unit |
|---|---|---|
principal | Principal | $ |
annualRate | Annual rate | % |
target | Target amount | $ |
years | Years required | years |
Math.log(target / principal) / Math.log(1 + annualRate / 100)The relationship is solved in every direction, so any one unknown field can be derived.
Worked example
Using the default inputs:
- Principal = 10000 $
- Annual rate = 6 %
- Target amount = 20000 $
Formula used: Math.log(target / principal) / Math.log(1 + annualRate / 100)
Answer:
- Years required = 11.9 years
Example 1 (default inputs):Suppose Principal = 10,000 $, Annual rate = 6 %, Target amount = 20,000 $; then giving Years required = 11.9 years.
Example 2 (one input changed):If you change Principal to 15,000,giving Years required = 4.94 years.
Additional information
Assumptions and limitations
- These models assume a constant rate, periodic compounding, and no taxes or trading costs. Real return sequences, fees and taxes materially change outcomes — treat results as planning guidance, not a promise.
- Good for: getting a directionally correct order of magnitude quickly, or comparing two scenarios.
- Not good for: using it as the sole basis for a decision, or for official filings, contract pricing and legal documents — those need a full model with your actual clauses and local rules.