Logarithm Calculator
Evaluate log_b(x) for any base, including the natural log (base e) and common log (base 10). Exact values are recognized when the argument is a power of the base.
How to use the logarithm calculator
- Enter the base (use e for natural log).
- Enter the argument (must be positive).
Examples
log₂ 64
Answer: 6
ln e³
Answer: 3
What a logarithm is
A logarithm answers the question "what power do I raise the base to, to get this number?"
So because . The calculator evaluates logs in any base, solves log equations, and expands or condenses expressions using the log laws, step by step.
Common bases
- usually means base 10 (common log). .
- means base (natural log). .
- Any other base is written explicitly, such as .
The log laws
| Law | Formula |
|---|---|
| Product | |
| Quotient | |
| Power | |
| Change of base | |
| Special values | , |
Worked example: solving a log equation
Solve .
- Product law: .
- Rewrite in exponential form: .
- , so and .
- Check the domain: the log of a negative number is undefined, so fails (). The answer is .
Worked example: change of base
. Check: ✓
Common mistakes
- . The product law is for multiplication inside the log.
- .
- Forgetting the domain: you can only take the log of a positive number.
Logs appear in exponential growth and decay, pH, decibels, the Richter scale and compound interest. Any time you need to solve for an exponent, you'll use them.
Formulas
Practice problems
Try each one first, then open the answer to check your work.
1.Evaluate .
Show answer
4, because .
2.Evaluate .
Show answer
, because .
3.Expand .
Show answer
.
4.Solve .
Show answer
.
5.Solve .
Show answer
.
Key terms
- Logarithm
- The exponent you raise the base to, to get a number.
- Base
- The number being raised to a power, such as 2 in .
- Natural log
- A logarithm with base , written .
- Common log
- A logarithm with base 10.
- Argument
- The number you take the log of, which must be positive.
Frequently asked questions
What is the change of base formula?
log_b(x) = ln(x) / ln(b). It lets you compute any logarithm with a calculator that only has ln or log.
What's the difference between log and ln?
log usually means base 10 and ln means base . They're related by .
Why can't you take the log of a negative number?
A positive base raised to any real power is always positive, so no real exponent gives a negative number (or zero).
How do I calculate a log with an unusual base?
Use the change of base formula: . For example .
Where are logarithms used in real life?
pH in chemistry, decibels for sound, the Richter scale for earthquakes, and solving for time in compound interest and population growth.