This calculator works out n, the number of compounding periods needed to reach a target balance with compound interest. Enter the starting amount, target amount, periodic interest rate, and the number of periods in a year; it returns the required number of periods and the corresponding time in years. You need a positive starting balance, a target above it, and a rate greater than zero.
Formula
For a balance that compounds at a fixed rate, use A = P(1 + i)n. Rearranging to solve for the number of periods gives n = ln(A / P) / ln(1 + i).
- A is the target future balance, in dollars.
- P is the starting balance, in dollars.
- i is the interest rate per compounding period, written as a decimal in the formula. Convert the input percentage by dividing by 100.
- n is the number of compounding periods. It can be a decimal in the mathematical result; a real account typically posts interest at whole periods.
The calculator’s r input is the percentage rate per period, so the expression uses r / 100. The input m is the number of compounding periods per year. The time output is n / m, in years. For monthly compounding, enter 12; for annual compounding, enter 1. Keep the rate period and compounding period aligned: if interest is 5% per month, enter 5, not 5% per year.
Worked Example
Using the calculator’s default values, the starting balance is $1,000, the target is $1,500, the periodic interest rate is 5%, and compounding occurs 12 times per year.
- Convert the percentage to a decimal: i = 5 / 100 = 0.05.
- Divide the target by the starting balance: A / P = 1,500 / 1,000 = 1.5.
- Take the natural logarithm of the ratio: ln(1.5) ≈ 0.405465.
- Take the natural logarithm of the growth factor: ln(1.05) ≈ 0.048790.
- Divide: n = 0.405465 / 0.048790 ≈ 8.31 periods.
- Convert periods into years: 8.31 / 12 ≈ 0.69 years.
The displayed results are 8.31 periods and 0.69 years, rounded to two decimal places. The fractional period is the formula’s mathematical answer; an account that credits interest monthly would generally need to complete a whole monthly period before that period’s interest is posted. If you need the first whole period at or above the target, round the unrounded answer up to the next integer.
Assumptions
- The periodic rate stays fixed throughout the calculation.
- Interest compounds at the end of each period, with no additional deposits or withdrawals.
- The rate entered applies to one compounding period. The periods-per-year input is used only to convert the result to years.
- Taxes, fees, penalties, changing rates, and account-specific posting rules are not included.
What You’ll Need
- The starting balance and the target balance, expressed in the same currency.
- The interest rate for one compounding period. If you only know an annual nominal rate, confirm the compounding convention and convert it to a periodic rate before entering it.
- The number of compounding periods per year, such as 12 for monthly or 4 for quarterly compounding.
- A calculator with natural logarithms (ln), or this page’s calculator.
Step-by-Step
- Choose the balance you want to reach. Treat the target as the future value of the starting balance. If you plan to add contributions, withdraw money, or make irregular deposits, the basic formula does not describe that situation.
- Use matching units for the two balances. Both must be in the same currency, and the target must be greater than the starting amount for a positive interest rate to produce a positive time.
- Identify the rate per compounding period. For example, if an account earns 0.5% each month, use 0.5 as the calculator’s rate input and set periods per year to 12. Do not enter 6 as the monthly rate just because 0.5% times 12 equals 6%; that is a nominal annual figure, not the monthly rate.
- Enter the compounding frequency. Use 1 for annual compounding, 4 for quarterly, 12 for monthly, or 365 for daily only if the account actually compounds daily. The stated frequency must reflect the terms that apply to your balance.
- Calculate the period count. The calculator finds the logarithm of the target-to-starting-balance ratio, then divides it by the logarithm of one plus the periodic rate. This reverses the exponent in the compound-interest formula.
- Interpret the result at the right precision. A result of 8.31 periods is not the same as 8 complete crediting periods. For the first completed period that reaches or exceeds the target, use the ceiling (round upward) of the unrounded period count.
- Check the result against the original formula. Substitute the period count into P(1 + i)n. It should reproduce the target, subject to rounding. To check a whole-period answer, substitute the rounded-up count; the balance should be at least the target when the assumptions hold.
Common Mistakes
- Using an annual rate as a period rate. A nominal annual rate of 6% with monthly compounding is commonly represented by 0.5% per month, not 6% per month. Confirm how the rate is quoted before converting.
- Mixing up the logarithm base. The formula works with natural logarithms (ln). It also works with common logarithms (log) if the same base is used in both places, but do not mix bases in the numerator and denominator.
- Reversing the balance ratio. Use target divided by starting balance, A / P. Swapping them changes the sign and produces an inappropriate result for growth.
- Rounding too soon. Keep full calculator precision while dividing logarithms. Round only the displayed answer; early rounding can change the count, especially near a whole period.
- Assuming fractional periods are credited. The equation gives a continuous mathematical count of discrete periods. Account statements generally show interest at the provider’s actual posting dates, so use whole periods when you need a practical checkpoint.
Tips
- Check whether the quoted rate is per year, per month, or another interval before entering it. A rate and its compounding period must refer to the same interval.
- For a target reached after whole compounding periods, calculate the unrounded n and round upward, not to the nearest integer.
- Use the time-in-years output only when the periods-per-year entry matches the actual schedule. For example, a period count under monthly compounding is divided by 12.
- For a negative rate, a target below the starting balance may be reachable, but this calculator accepts only positive rates and targets above the starting balance. Use the formula directly only when the logarithms are defined and the assumptions fit.
Troubleshooting
If the calculator rejects a value, check that both balances are positive, the target exceeds the starting balance, the rate is above zero, and the periods-per-year value is at least 1. A target equal to the starting balance gives zero periods, but the calculator’s positive-value range is intended for a growth target; that special case is simply zero when no growth is required.
If the answer seems far too small or large, verify whether you entered the rate as a percentage rather than a decimal: enter 5 for 5%, not 0.05. Then check that you used a per-period rate and the correct frequency. If the result is close to a whole number, keep extra digits until you decide whether to round up for completed periods. If your real balance includes contributions, fees, variable rates, or a different posting convention, the formula’s result will not match it exactly; use a model that accounts for those details.
Frequently Asked Questions
What does n mean in compound interest?
It means the number of times interest compounds during the interval being modelled. With monthly compounding, one period is one month.
Can n be a decimal?
Yes. Solving the equation gives a mathematical period count that can be fractional. For the first completed compounding period at or beyond the target, round the unrounded result upward.
How do I calculate n when I know the annual rate?
First convert the quoted rate to the rate per compounding period according to its stated convention. Then use that periodic rate in n = ln(A / P) / ln(1 + i). Do not assume an annual rate is automatically the periodic rate.
Does this formula work for monthly compounding?
Yes, provided the rate is monthly. The answer is then the number of months; divide by 12 to express it in years.
What if I add money regularly?
The single-starting-balance formula does not include deposits or withdrawals. Regular contributions require a formula that includes the amount and timing of each payment.
Why might my actual account reach the target at a different time?
The calculation assumes a fixed rate, consistent compounding, and no other transactions or charges. Actual account terms and posting details may differ from those assumptions.
Related
Formula used
in pv | Starting balance | $ | 1000 | 0.01 | 100000000 in fv | Target balance | $ | 1500 | 0.01 | 100000000 in r | Interest rate per period | % | 5 | 0.01 | 100 in m | Compounding periods per year | periods | 12 | 1 | 365 out n | Number of periods | periods | ln(fv / pv) / ln(1 + r / 100) | 2 out yrs | Time to target | years | n / m | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.
More in this section
- Rent-to-Income Ratio by Country: How Comparisons Work30.00 %
- Rent-to-Income Ratio: Definition and Calculator30.00 %
- Rent-to-Income Ratio Calculator and What It Means30.00 %
- Rent-to-Income Ratio by City: How to Compare
- Gross Income-to-Rent Ratio Calculator and Guide3.33 x
- Reasonable Income to Rent Ratio: A Practical Guide