**Other math topics**

# Comprehensive Guide on Compound Interest

*schedule*Aug 12, 2023

*toc*Table of Contents

*expand_more*

**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:

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:

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

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

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

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

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:

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:

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

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

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:

This leads us to the general formula for compound interest.

# Formula to compute compound interest

The compound interest is calculated by:

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.

# 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:

Let's directly apply our formula:

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

# 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:

We apply our formula for compound interest:

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