Mathematics for Finance
Logarithms
Exponents tell you how much money you'll have after so many years. Logarithms answer the reverse question: how many years until you have that much?
How long until it doubles?
Example, with made-up numbers. You invest $10,000 at 6% a year. How many years until it becomes $20,000? You need the n in 1.06n = 2. You could guess and check, but there's a direct way.
The idea
A logarithm answers the question "what power?" Since 10³ = 1,000, the log of 1,000 in base 10 is 3, written log10(1,000) = 3. It's the exponent turned around. You can only take the log of a positive number.
In finance the unknown is often the number of years, and that number sits up in the exponent. Logarithms bring it down where you can solve for it.
Years for money to double at different yearly rates, worked out with logarithms. Small changes in the rate make a big difference to the wait.
Three rules
These rules work for any base, including the natural log, ln, which you'll meet below.
| Rule | What it does |
|---|---|
| log(a × b) = log a + log b | Turns multiplying into adding |
| log(a ÷ b) = log a − log b | Turns dividing into subtracting |
| log(an) = n × log a | Brings the exponent down. This is the one that solves for years. |
Take the log of both sides of 1.06n = 2, and the third rule gives n × log 1.06 = log 2. Divide, and n = log 2 ÷ log 1.06 = 11.9 years.
If r is a monthly rate, n comes out in months. The answer is always in the same periods as the rate.
Quick check
A quick shortcut, the rule of 72, says money doubles in about 72 ÷ rate years, using the rate as a whole number (9 for 9%). Roughly how long does money take to double at 9%?
The natural log and the number e
Your calculator has two log keys: log (base 10) and ln, the natural log. For solving for years, either works, as long as you use the same one on top and bottom. Finance mostly uses ln.
The ln key answers "what power of e?", where e ≈ 2.718. It comes from compounding more and more often. Put $1 in at 100% a year:
| Interest added once a year | $2.0000 |
| Added monthly | $2.6130 |
| Added daily | $2.7146 |
| Added continuously | $2.7183 = e |
However often you compound, you never pass e. You'll meet it again in continuous compounding and in log returns.
Worked example
Example, with made-up numbers. How long will it take $5,000 to grow to $8,000 at 5% a year?
| 1. How many times bigger? | 8,000 ÷ 5,000 = 1.6 |
| 2. ln of the growth | ln 1.6 = 0.4700 |
| 3. ln of 1 + rate | ln 1.05 = 0.0488 |
| 4. Divide | 0.4700 ÷ 0.0488 |
Check it with exponents: 5,000 × 1.059.63 ≈ 8,000.
Try it yourself
How long until you reach a target, and the rule of 72 for comparison.
Common mistakes
Three slips beginners make.
- Using the rate instead of 1 + the rate. It's ln(1.05), not ln(0.05) or ln(5).
- Dividing ln(FV) by ln(PV). Divide FV by PV first, then take the log.
- Trusting the rule of 72 at high rates. It's a shortcut. At 15%, it says 4.8 years when the real answer is 5.0.
Remember
- A logarithm answers "what power?"
- log(an) = n × log a brings the years down to solve for them.
- Rule of 72: money doubles in about 72 ÷ rate years.
Check yourself
Three questions. Try them without scrolling up.
1. What is log10(100)?
2. Using the rule of 72, roughly how long does money take to double at 8%?
3. Which rule lets you solve for the number of years?
Linear equations and graphs
Solving for an unknown, and finding where a business breaks even.