Compound interest on a calculator: how to type the formula

Last reviewed on 28 November 2026.

Short answer: the compound interest formula is A = P × (1 + r/n)^(n × t). On a calculator the whole exponent has to sit inside brackets. For 1,000 at 5% a year, compounded monthly for 10 years, type:

1000*(1+0.05/12)^(12*10)   →  1647.00949769

Leave out the brackets around 12*10 and the same keys give 10,511.62, which is wrong by a factor of more than six.

Compound interest is one of the most common reasons people reach for the power key, and one of the easiest places to get a confident wrong answer. The formula is short, but it stacks a division, an addition, a power and a multiplication in one line, so the order of operations decides everything. This page shows how to type each version on the calculator, with results you can check your own typing against. It covers the arithmetic only: real accounts and loans add fees, taxes and rounding rules that no formula on this page knows about.

The parts of the formula

SymbolMeaningIn the example
PStarting amount (principal)1000
rYearly rate, written as a decimal5% → 0.05
nTimes interest is added per year12 (monthly)
tNumber of years10
AFinal amount, principal plus interest1647.01

The rate must go in as a decimal. 5% is 0.05, 0.5% is 0.005, and 12.5% is 0.125. On this calculator you can also type 5%, because the % key divides by 100: 1000*(1+5%/12)^(12*10) gives the same 1647.00949769.

Yearly compounding: the multiplier shortcut

When interest is added once a year, n is 1 and the formula shrinks to A = P × (1 + r)^t. Add the rate to 1 in your head and you have a single multiplier: 7% growth is 1.07, 5% is 1.05, a 3% fall is 0.97.

175000*1.07^10   →  344251.487526
240000*1.05^3    →  277,830
1000*1.05^10     →  1628.89462678

No brackets are needed here, because powers are worked out before multiplication: the calculator raises 1.07 to the 10th power first and only then multiplies by 175,000. The same pattern handles anything that grows by a fixed percentage each period, such as a salary rising 3% a year or a price rising with inflation.

Monthly, weekly or daily compounding

For any other frequency, both the rate and the exponent change: the rate is divided by n and the number of periods is n × t. Two pairs of brackets are needed, one around 1 + r/n and one around the exponent.

CompoundingnWhat to type (1,000 at 5% for 10 years)Result
Yearly11000*1.05^101628.89
Quarterly41000*(1+0.05/4)^(4*10)1643.62
Monthly121000*(1+0.05/12)^(12*10)1647.01
Weekly521000*(1+0.05/52)^(52*10)1648.33
Daily3651000*(1+0.05/365)^(365*10)1648.66
Continuous∞1000*e^(0.05*10)1648.72

Notice how little the frequency matters once it passes monthly: going from monthly to daily adds 1.65 on a 1,000 deposit over ten years. The rate and the length of time do nearly all the work.

You can also multiply the exponent out yourself. Three years of weekly compounding is 156 periods, so (1+0.024/52)^156 and (1+0.024/52)^(52*3) are the same thing.

The two bracket traps

Trap 1: the exponent. A power applies only to the single value straight after the ^. Compare:

1000*(1+0.05/12)^(12*10)   →  1647.00949769    correct
1000*(1+0.05/12)^12*10     →  10511.6189788    one year of growth, then × 10

Trap 2: the base. Without brackets around 1 + r/n, the power grabs only the 12:

1000*1+0.05/12^(12*10)     →  1,000            the interest term vanishes

If your answer is exactly the principal, or absurdly large, one of these two brackets is missing. On a phone or handheld calculator the rule is the same; only the name of the power key changes (xʸ, yˣ or ^).

Interest earned, and the effective yearly rate

The formula gives the final balance. To get the interest alone, subtract the principal:

1000*(1+0.05/12)^(12*10)-1000   →  647.00949769

For comparison, simple interest on the same deposit, with no compounding, is 1000*0.05*10 = 500. The extra 147.01 is interest earned on earlier interest.

To see what a rate compounded monthly amounts to over one year (the effective annual rate), run the formula for one year on a principal of 1 and subtract 1:

(1+0.05/12)^12-1   →  0.0511618978817     about 5.12% a year

Continuous compounding

If interest is added continuously, the formula becomes A = P × e^(r × t). The eˣ key on the SCI panel types e^( for you, so the brackets are already in place:

1000*e^(0.05*10)   →  1648.7212707

This is the version used in most physics and finance theory, and it is where the natural logarithm comes in when you solve for time. The log vs ln guide has a worked example.

Working backwards: finding the rate or the time

What yearly rate turns P into A in t years? Take the t-th root of the growth factor and subtract 1. A root is a power of 1/t, and the fraction needs brackets:

(1500/1000)^(1/8)-1   →  0.0519895055086    about 5.2% a year

What monthly rate matches a yearly rate? Not the yearly rate divided by 12. Take the 12th root of the yearly multiplier:

1.0636^(1/12)     →  1.00515150531
1.0636^(1/12)-1   →  0.00515150530748    about 0.515% a month

How long until P becomes A at a yearly rate r? Divide the logarithm of the growth factor by the logarithm of the yearly multiplier. Either ln or log works as long as you use the same key twice:

ln(1500/1000)/ln(1.05)   →  8.31038622252    years to grow 1,000 into 1,500 at 5%
ln(2)/ln(1.07)           →  10.2447683511    years to double at 7%

The well-known "rule of 72" is a mental shortcut for the last one: 72 ÷ 7 ≈ 10.3 years, close to the exact 10.24.

Adding a regular deposit

If you pay in the same amount every period instead of one lump sum, the balance after N deposits is given by the future value of a series, with i as the rate per period and each deposit made at the end of its period:

FV = deposit × ((1 + i)^N − 1) / i

Typed on one line, this needs brackets around the whole numerator and around the rate per period. For 100 a week for three years (156 weeks) at 2.4% a year compounded weekly:

100*((1+0.024/52)^156-1)/(0.024/52)   →  16171.45701

The deposits alone add up to 100*156 = 15,600, so about 571.46 of the total is interest. The most common mistake is typing … -1/0.024/52 with no brackets, which divides only the 1, and then divides by 52 instead of multiplying.

How compounding adds up over time

1,000 at 5% a year, compounded yearly, against the same deposit earning simple interest:

YearsSimple interestCompound interestWhat to type
11,050.001,050.001000*1.05
51,250.001,276.281000*1.05^5
101,500.001,628.891000*1.05^10
202,000.002,653.301000*1.05^20
302,500.004,321.941000*1.05^30

Common mistakes

Frequently asked questions

How do I type the compound interest formula into a calculator?

Type the principal, then × (1 + rate ÷ periods per year), then the power key, then the total number of periods in brackets. For 1,000 at 5% compounded monthly for 10 years: 1000*(1+0.05/12)^(12*10), which gives 1647.01.

Which key is the power key?

On this calculator it is xʸ on the SCI panel, or the ^ key on a keyboard. Handheld calculators label it xʸ, yˣ or ^.

Why do I get a huge number?

Almost always because the exponent is not in brackets. (1+0.05/12)^12*10 raises to the 12th power and then multiplies by 10. Write ^(12*10).

How do I calculate interest compounded yearly?

Multiply the principal by (1 + rate) raised to the number of years. 240,000 at 5% for 3 years is 240000*1.05^3 = 277,830.

How do I find a monthly rate from a yearly rate?

Take the 12th root of the yearly multiplier and subtract 1: 1.0636^(1/12)-1 gives about 0.00515, or 0.515% a month. Dividing the yearly rate by 12 gives a slightly different, nominal figure.

How long does money take to double?

Type ln(2)/ln(1+r) with r as a decimal. At 7% a year that is ln(2)/ln(1.07) ≈ 10.24 years. Dividing 72 by the percentage rate gives a quick estimate.

Does this page tell me what my account or loan will pay?

No. It shows how to type the standard formulas. Real products apply their own fees, taxes, day-count and rounding rules, so use the figures from your provider for decisions.