Skip to main content
Mathematics LibreTexts

2.3: Compound Interest

  • Page ID
    56769
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives

    In this section, you will learn to:

    • Use the compound interest formula to calculate the future value of a lump sum

    So that they can analyze financial scenarios to make informed decisions.

    With simple interest, we were assuming that we pocketed the interest when we received it. In a standard bank account, any interest we earn is automatically added to our balance, and we earn interest on that interest in future years. This reinvestment of interest is called compounding.

    Suppose that we deposit $1000 in a bank account offering 3% interest, compounded monthly. How will our money grow?

    The 3% interest is an annual percentage rate (APR) – the total interest to be paid during the year. Since interest is being paid monthly, each month, we will earn \(\frac{3 \%}{12}=0.25 \%\) per month.

    In the first month,

    \(P_{0}=\$ 1000\)

    \(r=0.0025(0.25 \%)\)

    \(I=\$ 1000(0.0025)=\$ 2.50\)

    \(A=\$ 1000+\$ 2.50=\$ 1002.50\)

    In the first month, we will earn $2.50 in interest, raising our account balance to $1002.50.

    In the second month,

    \(P_{0}=\$ 1002.50\)

    \(I=\$ 1002.50(0.0025)=\$ 2.51\) (rounded)

    \(A=\$ 1000+\$ 2.50=\$ 1002.50\)

    Notice that in the second month we earned more interest than we did in the first month. This is because we earned interest not only on the original $1000 we deposited, but we also earned interest on the $2.50 of interest we earned the first month. This is the key advantage that compounding of interest gives us.

    Calculating out a few more months:

    \(\begin{array}{|l|l|l|l|}
    \hline \textbf { Month } & \textbf { Starting balance } & \textbf { Interest earned } & \textbf { Ending Balance } \\
    \hline 1 & 1000.00 & 2.50 & 1002.50 \\
    \hline 2 & 1002.50 & 2.51 & 1005.01 \\
    \hline 3 & 1005.01 & 2.51 & 1007.52 \\
    \hline 4 & 1007.52 & 2.52 & 1010.04 \\
    \hline 5 & 1010.04 & 2.53 & 1012.57 \\
    \hline 6 & 1012.57 & 2.53 & 1015.10 \\
    \hline 7 & 1015.10 & 2.54 & 1017.64 \\
    \hline 8 & 1017.64 & 2.54 & 1020.18 \\
    \hline 9 & 1020.18 & 2.55 & 1022.73 \\
    \hline 10 & 1022.73 & 2.56 & 1025.29 \\
    \hline 11 & 1025.29 & 2.56 & 1027.85 \\
    \hline 12 & 1027.85 & 2.57 & 1030.42 \\
    \hline
    \end{array}\)

    To find an equation to represent this, if \(P_{m}\) represents the amount of money after \(m\) months, then we could write the recursive equation:

    \(P_{0}=\$ 1000\)

    \(P_{m}=(1+0.0025) P_{m-1}\)

    You probably recognize this as the recursive form of exponential growth. If not, we could go through the steps to build an explicit equation for the growth:

    \(P_{0}=\$ 1000\)

    \(P_{1}=1.0025 P_{0}=1.0025(1000)\)

    \(P_{2}=1.0025 P_{1}=1.0025(1.0025(1000))=1.0025^{2}(1000)\)

    \(P_{3}=1.0025 P_{2}=1.0025\left(1.0025^{2}(1000)\right)=1.0025^{3}(1000)\)

    \(P_{4}=1.0025 P_{3}=1.0025\left(1.0025^{3}(1000)\right)=1.0025^{4}(1000)\)

    Observing a pattern, we could conclude

    \(P_{m}=(1.0025)^{m}(\$ 1000)\)

    Notice that the $1000 in the equation was \(P_0\), the starting amount. We found 1.0025 by adding one to the growth rate divided by 12, since we were compounding 12 times per year.

    Generalizing our result, we could write

    \(P_{m}=P_{0}\left(1+\frac{r}{k}\right)^{m}\)

    In this formula:

    \(m\) is the number of compounding periods (months in our example)

    \(r\) is the annual interest rate

    \(k\) is the number of compounds per year.

    While this formula works fine, it is more common to use a formula that involves the number of years, rather than the number of compounding periods. If \(N\) is the number of years, then \(m = N k\). Making this change gives us the standard formula for compound interest.

    Compound Interest

    \(P_{N}=P_{0}\left(1+\frac{r}{k}\right)^{N k}\)

    \(P_N\) is the balance in the account after N years.

    \(P_0\) is the starting balance of the account (also called an initial deposit, or principal)

    \(r\) is the annual interest rate in decimal form

    \(k\) is the number of compounding periods in one year.

    If the compounding is done annually (once a year), \(k = 1\).

    If the compounding is done quarterly, \(k = 4\).

    If the compounding is done monthly, \(k = 12\).

    If the compounding is done daily, \(k = 365\).

    The most important thing to remember about using this formula is that it assumes that we put money in the account once and let it sit there earning interest.

    Example \(\PageIndex{1}\)

    A certificate of deposit (CD) is a savings instrument that many banks offer. It usually gives a higher interest rate, but you cannot access your investment for a specified length of time. Suppose you deposit $3000 in a CD paying 6% interest, compounded monthly. How much will you have in the account after 20 years?

    Solution

    In this example,

    \(\begin{array} {ll} P_{0}=\$ 3000 & \text{the initial deposit} \\ r = 0.06 & 6\% \text{ annual rate} \\ k = 12 & \text{12 months in 1 year} \\ N = 20 & \text{since we’re looking for how much we’ll have after 20 years} \end{array}\)

    So \(P_{20}=3000\left(1+\frac{0.06}{12}\right)^{20 \times 12}=\$ 9930.61\) (round your answer to the nearest penny)

    You try it \(\PageIndex{1}\)

    Let us compare the amount of money earned from compounding against the amount you would earn from simple interest

    \(\begin{array}{|l|r|r|}
    \hline \text { Years } & \begin{array}{l}
    \text { Simple Interest } \\
    \text { (\$15 per month) }
    \end{array} & \begin{array}{l}
    6 \% \text { compounded } \\
    \text { monthly }=0.5 \% \\
    \text { each month. }
    \end{array} \\
    \hline 5 & \$ 3900 & \$ 4046.55 \\
    \hline 10 & \$ 4800 & \$ 5458.19 \\
    \hline 15 & \$ 5700 & \$ 7362.28 \\
    \hline 20 & \$ 6600 & \$ 9930.61 \\
    \hline 25 & \$ 7500 & \$ 13394.91 \\
    \hline 30 & \$ 8400 & \$ 18067.73 \\
    \hline 35 & \$ 9300 & \$ 24370.65 \\
    \hline
    \end{array}\)
    fi1.svg

    As you can see, over a long period of time, compounding makes a large difference in the account balance. You may recognize this as the difference between linear growth and exponential growth.

    Evaluating exponents on the calculator

    When we need to calculate something like \(5^3\) it is easy enough to just multiply \(5 \cdot 5 \cdot 5=125\). But when we need to calculate something like \(1.005^{240}\), it would be very tedious to calculate this by multiplying 1.005 by itself 240 times! So to make things easier, we can harness the power of our scientific calculators.

    Most scientific calculators have a button for exponents. It is typically either labeled like:

    \([\wedge ]\), \([y^x]\), or \([x^y]\)

    To evaluate \(1.005^{240}\) we'd type 1.005 \([^]\) 240, or 1.005 \([y^x]\) 240. Try it out - you should get something around 3.3102044758.

    Example  \(\PageIndex{2}\)

    You know that you will need $40,000 for your child’s education in 18 years. If your account earns 4% compounded quarterly, how much would you need to deposit now to reach your goal?

    Solution

    We’re looking for \(P_0\).

    \(\begin{array} {ll} r = 0.04 & 4\% \\ k = 4 & \text{4 quarters in 1 year} \\ N = 18 & \text{Since we know the balance in 18 years} \\ P_{18} = \$40,000 & \text{The amount we have in 18 years} \end{array}\)

    In this case, we’re going to have to set up the equation, and solve for \(P_0\).

    \(40000=P_{0}\left(1+\frac{0.04}{4}\right)^{18 \times 4}\)

    \(40000=P_{0}(2.0471)\)

    \(P_{0}=\frac{40000}{2.0471}=\$ 19539.84\)

    So you would need to deposit $19,539.84 now to have $40,000 in 18 years.

    You try it \(\PageIndex{2}\)

     

    Rounding

    It is important to be very careful about rounding when calculating things with exponents. In general, you want to keep as many decimals during calculations as you can. Be sure to keep at least 3 significant digits (numbers after any leading zeros). Rounding 0.00012345 to 0.000123 will usually give you a “close enough” answer, but keeping more digits is always better.

    Example  \(\PageIndex{3}\)

    To see why not over-rounding is so important, suppose you were investing $1000 at 5% interest compounded monthly for 30 years.

    Solution

    \(\begin{array} {ll} P_0 = \$1000 & \text{the initial deposit} \\ r = 0.05 & 5\% \\ k = 12 & \text{12 months in 1 year} \\ N = 30 & \text{since we’re looking for the amount after 30 years} \end{array}\)

    If we first compute \(\frac{r}{k}\), we find \(\frac{0.05}{12} = 0.00416666666667\)

    Here is the effect of rounding this to different values:

    \(\begin{array}{|l|l|l|}
    \hline r / k \text { rounded to: } & \text { Gives } \boldsymbol{P}_{30} \text { to be: } & \text { Error } \\
    \hline 0.004 & \$ 4208.59 & \$ 259.15 \\
    \hline 0.0042 & \$ 4521.45 & \$ 53.71 \\
    \hline 0.00417 & \$ 4473.09 & \$ 5.35 \\
    \hline 0.004167 & \$ 4468.28 & \$ 0.54 \\
    \hline 0.0041667 & \$ 4467.80 & \$ 0.06 \\
    \hline \text { no rounding } & \$ 4467.74 & \\
    \hline
    \end{array}\)

    If you’re working in a bank, of course you wouldn’t round at all. For our purposes, the answer we got by rounding to 0.00417, three significant digits, is close enough - $5 off of $4500 isn’t too bad. Certainly keeping that fourth decimal place wouldn’t have hurt.

    Using your calculator

    In many cases, you can avoid rounding completely by how you enter things in your calculator. For example, in the example above, we needed to calculate

    \(P_{30}=1000\left(1+\frac{0.05}{12}\right)^{12 \times 30}\)

    We can quickly calculate \(12 \times 30=360\), giving \(P_{30}=1000\left(1+\frac{0.05}{12}\right)^{360}\).

    Now we can use the calculator.

    \(\begin{array}{|c|c|}
    \hline \textbf { Type this } & \textbf { Calculator shows } \\
    \hline 0.05 [\div] 12 [=] & 0.00416666666667 \\
    \hline [+] 11 [=] & 1.00416666666667 \\
    \hline [\mathrm{y}^{\mathrm{x}}] 360 [=] & 4.46774431400613 \\
    \hline [\times] 1000 [=] & 4467.74431400613 \\
    \hline \hline
    \end{array}\)

    Using your calculator continued

    The previous steps were assuming you have a “one operation at a time” calculator; a more advanced calculator will often allow you to type in the entire expression to be evaluated. If you have a calculator like this, you will probably just need to enter:

    1000 \([\times]\) ( 1 \([+]\) 0.05 \([\div]\) 12 ) \([y^x]\) 360 \([=]\).

    Annual Percent Yield (APY)

    Often when reviewing interest rates of financial products, you hear about the Annual Percent Rate and Annual Percent Yield (APR and APY). What is the difference between these two? Annual Percent Yield is the effective interest rate at the end of the year when all of the compoundings have occurred. Notice that in our opening example, we started with $1000 invested at 3% interest compounded monthly; at the end of the year we end up with $1030.42 which means that there was a simple yield of 3.042% interest on the original $1000 investment. 3% interest compounded monthly for a full year results in an annual percent yield of 3.042%.

    APY Calculations

    The Annual Percent Yield of a given financial product is given by

    APY=\((1+\frac{r}{n})^n-1\)

    where \(r=\) the annual percentage rate and \(n=\) the number of compoundings per year.

    Notice that applying this formula to 3% annual interest compounded monthly, we get \((1+\frac{.03}{12})^{12}-1=0.03041595691\) which is 3.042% when rounded.

    Example \(\PageIndex{4}\)

    A bank features a savings account that has an annual percentage rate of \(r=3%\). Find the Annual Percentage Yield (APY) for the savings account if the interest is compounded according to the following schedules:

    1. Annually
    2. Semi-annually
    3. Quarterly
    4. Monthly
    Solution

    The compound interest formula is

    \[A=P(1+\frac{r}{n})^{nt} \nonumber \]
    but to find the annual percenaget yield, we can use the formula:
    \[APY=(1+\frac{r}{n})^n-1 \nonumber \]
    Depending on the frequency of the compoundings, \(n\) may vary:
    • \(n=1\) if the compoundings are Annual;
    • \(n=2\) if the compoundings are Semiannual;
    • \(n=4\) if the compoundings are Quarterly;
    • \(n=12\) if the compoundings are Monthly.

    Using the \(r=0.03\) and the various compounding periods, we have

    1. Annual: \(APY=(1+\frac{0.03}{1})^1−1=0.03=3%\)
    2. Semiannual: \(APY=(1+\frac{0.03}{2})^2−1=0.030225≈3.022% \)
    3. Quarterly: \(APY=(1+\frac{0.03}{4})^4−1=0.030339190664063≈3.034% \)
    4. Monthly: \(APY=(1+\frac{0.03}{12})^{12}−1=0.030415956913507≈3.042% \)
    You try it \(\PageIndex{3}\)

    This page titled 2.3: Compound Interest is shared under a CC BY-SA license and was authored, remixed, and/or curated by David Lippman (The OpenTextBookStore) .

    • Was this article helpful?