Derivatives, One Step at a Time

Interest Compounding: Annual, Semiannual and Continuous

Loading Java…

Give an interest rate its units

The bakery has $1,000 available today and wants to compare how it grows. A quoted annual rate needs a compounding convention: crediting interest once a year differs from crediting it every six months. Start with 10% and change one ingredient at a time.

Predict first, run the calculation, then make the requested change. Each calculation stands alone. Enter numeric answers without units. Round to two decimal places unless the check specifies otherwise; trailing zeros are optional.

What does compounding mean?

Compounding earns interest on earlier interest as well as the original deposit. A rate quotation must specify how often interest is credited. We assume a fixed rate and that every interest payment stays invested.

SymbolMeaningExample
AAmount invested today$1,000
RQuoted annual rate as a decimal10% = 0.10
mNumber of compounding periods per year2 for semiannual
TTime in years2 for two years

Future value = A × (1 + R/m)^(m × T). For annual compounding, m = 1. In Java, Math.pow(base, exponent) calculates a power. Use decimal rates: 0.10, not 10.

Continuous compounding uses future value = A × exp(r × T), where r is the continuously compounded annual rate and Math.exp(x) means e raised to x. Math.log(x) is the natural logarithm, which reverses Math.exp.

Effective annual rate = (1 + R/m)^m − 1. The continuous rate equivalent to an effective annual rate a is r = log(1 + a). Equal quoted numbers under different conventions need not produce equal cash amounts. Equivalent rates do produce equal cash amounts.

Exercise 1 — Convert the percentage first

A 10% annual rate earns $100 on $1,000 during the first year. Calculate interest only, then change 0.10 to 0.08. Keep the principal separate from the interest: the result here is the addition, not the ending balance.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

After changing the rate to 8%, how many dollars of interest are earned?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Exercise 2 — Include the original money

Restore 10% annual compounding. Multiply the principal by one plus the rate to find the year-end balance. The multiplier 1.10 includes both the original 100% and the extra 10%. Compare this with the interest-only result.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

What is the balance after one year at 10% annual compounding?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Exercise 3 — Let the interest earn interest

Keep the money invested for two full years at 10% annual compounding. The second year starts with $1,100, so it earns $110. Compare the compounded balance with $1,200, which would credit $100 in each year without reinvesting the first interest payment.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

How many dollars are in the account after two years?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Read the picture

Follow the same $1,000 through two half-years and compare one-year balances on a shared scale.

Follow the same $1,000 through two half-years and compare one-year balances on a shared scale.

The figure uses the stated original values. Editing a calculation does not change the illustration.

Exercise 4 — Split the year into two periods

Now quote 10% per year with semiannual compounding. Each half-year earns 5%, and there are two half-years in one year. The second half-year earns interest on $1,050. Use 0.10 / 2 for the periodic rate rather than crediting 10% twice.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

What is the one-year balance with semiannual compounding?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Exercise 5 — Measure the effective annual increase

Divide the final balance by the original amount and subtract one, or directly calculate the growth multiplier minus one. Multiply by 100 to report percentage points. This translates the semiannual quotation into a comparable one-year increase.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

What is the effective annual rate, as a percentage?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Exercise 6 — Try continuous compounding

Use a continuously compounded rate of 10% for one year. Math.exp handles the exponential calculation; do not type the mathematical constant e yourself. This uses the same quoted number as before, with a different convention. Round the dollar result to two decimals.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

What is the one-year balance, rounded to two decimals?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Read the picture

Equivalent quotations preserve the ending balance; the compounding label belongs with the rate.

Equivalent quotations preserve the ending balance; the compounding label belongs with the rate.

The figure uses the stated original values. Editing a calculation does not change the illustration.

Exercise 7 — Convert a quotation without changing its outcome

Find the continuous rate that gives exactly the same one-year growth as 10% annual compounding. Math.log(1.10) returns the rate as a decimal. Convert it to a percentage. Unlike keeping both quotations at 10%, this conversion preserves the final balance.

In [ ]:
Java
CHECK YOUR UNDERSTANDING · WRITE AN ANSWER

What equivalent continuous annual rate, in percent, rounds to two decimals?

Need a hint?

Use this exercise’s stated date, rate convention and cash flow. Apply the requested edit before answering when one is specified.

Waiting for your answer.

Remember

Always pair a rate with its convention. The same quoted 10% produces different growth under annual, semiannual and continuous compounding.

All prices and rates are fictional teaching inputs. Keep full precision inside calculations and round only the final answer.

Keyboard shortcuts

Press Esc to enter cell command mode. Then use the keys below. Press Enter to edit again.

A
In command mode: insert a Java cell above the selected cell.
B
In command mode: insert a Java cell below the selected cell.
D, D
In command mode: press D twice within one second to delete the selected cell. Runtime variables remain until kernel restart.
Z
In command mode: undo the last cell deletion.
Shift + Enter
Run code, check a quiz answer, or advance past Markdown; then select the next cell.
Tab
Move focus to the next control or cell.
Shift + Tab
Move focus to the previous control or cell.
Enter
Edit the selected cell in command mode; check an answer when a quiz input is focused, or activate a focused button.
Esc
Enter cell command mode, or close this popup when it is open.