search
Search
Login
Unlock 100+ guides
menu
menu
web
search toc
close
Comments
Log in or sign up
Cancel
Post
account_circle
Profile
exit_to_app
Sign out
What does this mean?
Why is this true?
Give me some examples!
search
keyboard_voice
close
Searching Tips
Search for a recipe:
"Creating a table in MySQL"
Search for an API documentation: "@append"
Search for code: "!dataframe"
Apply a tag filter: "#python"
Useful Shortcuts
/ to open search panel
Esc to close search panel
to navigate between search results
d to clear all current filters
Enter to expand content preview
icon_star
Doc Search
icon_star
Code Search Beta
SORRY NOTHING FOUND!
mic
Start speaking...
Voice search is only supported in Safari and Chrome.
Navigate to

Comprehensive Guide on Compound Interest

schedule Aug 12, 2023
Last updated
local_offer
Tags
mode_heat
Master the mathematics behind data science with 100+ top-tier guides
Start your free 7-days trial now!

Motivating example

Suppose we initially have $\$100$ in our bank account and the bank has a generous interest rate of $50\%$ compounded annually. This means that every year, the bank will increase however much money we have in our bank account by $50\%$. Let's see how our money grows year after year:

Today

1st year

2nd year

3rd year

$\$100$

$100(1+0.5)=\color{red}\$150$

${\color{red}150}(1+0.5)=\color{green}\$225$

${\color{green}225}(1+0.5)=\$337.5$

In general, we can see that the new balance for any year is computed by:

$$\begin{equation}\label{eq:zxdCCsS9EgEWYz0vHXI} P_t=P_{t-1}(1+r) \end{equation}$$

Where:

  • $P_t$ is the bank balance of the $t$-th year.

  • $P_{t-1}$ is the bank balance of the previous ($t-1$-th) year.

  • $r$ is the interest rate in decimals.

But the bank balance of the previous year $P_{n-1}$ is computed as follows:

$$\begin{equation}\label{eq:AqCJgaVJizozCQsduUP} P_{t-1}=P_{t-2}(1+r) \end{equation}$$

Substituting \eqref{eq:AqCJgaVJizozCQsduUP} into \eqref{eq:zxdCCsS9EgEWYz0vHXI}

$$\begin{equation}\label{eq:Z80Pj4HUdppIwJOrBMU} P_t=P_{t-2}(1+r)^2 \end{equation}$$

Again $P_{t-2}$ is computed using $P_{t-3}$:

$$\begin{equation}\label{eq:meN8gE2ibecmhEuE7mm} P_{t-2}=P_{t-3}(1+r) \end{equation}$$

Substituting \eqref{eq:meN8gE2ibecmhEuE7mm} into \eqref{eq:Z80Pj4HUdppIwJOrBMU} gives:

$$\begin{equation}\label{eq:QHx6YbArTYMPRqBfIim} P_t=P_{t-3}(1+r)^3 \end{equation}$$

We can keep repeating this until we get to the present day, that is, when we have our initial bank balance $P_0$:

$$\begin{equation}\label{eq:f1uWYDMMtzWf1abZSpV} P_t=P_{0}(1+r)^t \end{equation}$$

This equation gives us the bank balance after $n$ years when the interest $r$ is compounded annually. What if the interest is not compounded annually, but instead semi-annually, that is, twice a year? By definition of compound interest, this would mean that we would receive the interest twice as frequently, but the interest rate will also be cut in half.

Once again, let's assume that we initially have $\$100$ in our bank account and the bank has an interest rate of $50\%$ compounded semi-annually:

Today

0.5 year

1 year

1.5 year

$\$100$

$100(1+0.25)=\$125$

$125(1+0.25)=\$156.25$

$156.25(1+0.25)=\$195.3125$

We can see that the formula to compute the bank account after $t$ years is:

$$\begin{equation}\label{eq:PfszVd1w0MK1EWV5wFW} P_t=P_{t-(1/2)}\Big(1+\frac{r}{2}\Big) \end{equation}$$

Here, $P_t$ is dependent on $P_{t-(1/2)}$, that is, the bank balance half a year ago. Similarly, $P_{t-(1/2)}$ is computed by:

$$\begin{equation}\label{eq:rQhm33uhDZTpMuS02C6} P_{t-(1/2)}=P_{t-1}\Big(1+\frac{r}{2}\Big) \end{equation}$$

Substituting \eqref{eq:rQhm33uhDZTpMuS02C6} into \eqref{eq:PfszVd1w0MK1EWV5wFW} gives:

$$\begin{equation}\label{eq:E9fFxwbmYmEH4MsLg6N} P_t=P_{t-1}\Big(1+\frac{r}{2}\Big)^2 \end{equation}$$

If we keep repeating the same process until we reach the present day, we should end up with:

$$\begin{equation}\label{eq:F7H3SFxiSR1f0eczMY2} P_t=P_{0}\Big(1+\frac{r}{2}\Big)^{2t} \end{equation}$$

Notice the following:

  • the exponent is $2t$ instead of $t$ because the frequency in which we receive the interest is doubled.

  • we are dividing $r$ by $2$ because the interest rate is cut in half.

If the interest is compounded quarterly, then we can guess that the formula is:

$$\begin{equation}\label{eq:teon18GMzdARjEIXdEP} P_t=P_{0}\Big(1+\frac{r}{4}\Big)^{4t} \end{equation}$$

This leads us to the general formula for compound interest.

Theorem.

Formula to compute compound interest

The compound interest is calculated by:

$$\begin{align*} A=P\Big(1+\frac{r}{n}\Big)^{nt} \end{align*}$$

Where:

  • $A$ is the final amount in the bank account after $t$ years.

  • $P$ is the principal, that is, the starting amount in the bank account.

  • $r$ is the interest rate (e.g. $0.1$).

  • $n$ is the number of compounds per year.

  • $t$ is the number of years elapsed.

Example.

Computing compound interest (1)

Suppose we have $\$100$ in our bank account and the bank has an interest rate of $40\%$ compounded quarterly. What would our balance be at the end of $2$ years?

Solution. We are given the following information:

$$P=\$100,\;\;\;\;\; r=0.4,\;\;\;\;\; n=4,\;\;\;\;\; t=2 $$

Let's directly apply our formula:

$$\begin{align*} A&=P\Big(1+\frac{r}{n}\Big)^{nt}\\ &=(100)\Big(1+\frac{0.4}{4}\Big)^{(4)(2)}\\ &=(100)(1.1)^{8}\\ &\approx\$214 \end{align*}$$

Therefore, we should expect to have roughly $\$214$ in our bank account after $2$ years!

Example.

Computing compound interest (2)

Suppose we have $\$150$ stored in our bank account. The bank has an interest rate of $10\%$ compounded annually. What would our bank balance be after $3$ years?

Solution. We are given the following information:

$$P=\$150,\;\;\;\;\; r=0.1,\;\;\;\;\; n=1,\;\;\;\;\; t=3 $$

We apply our formula for compound interest:

$$\begin{align*} A&=P\Big(1+\frac{r}{n}\Big)^{nt}\\ &=(150)\Big(1+\frac{0.1}{1}\Big)^{1\cdot3}\\ &=(150)(1.1)^{3}\\ &=\$199.65 \end{align*}$$

Therefore, after $3$ years, we would end up with roughly $200$ dollars in our bank account!

robocat
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
thumb_up
thumb_down
Comment
Citation
Ask a question or leave a feedback...
thumb_up
0
thumb_down
0
chat_bubble_outline
0
settings
Enjoy our search
Hit / to insta-search docs and recipes!