Math · 64 calculators
Logarithm Calculator
A logarithm asks what power a base must be raised to in order to produce a given number, and it turns multiplication into addition.
Last updated
Logarithm in your base
3
- Natural logarithm (base e)
- 6.9078
- Common logarithm (base 10)
- 3
- Check: base raised to the answer
- 1,000
- Equivalent doublings (base 2)
- 9.9658
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
log_b(x) = ln(x) / ln(b)
- x
- The number whose logarithm you want
- b
- The base, which must be positive and not equal to 1
- ln
- Natural logarithm, the logarithm to base e
- log
- Common logarithm, the logarithm to base 10
How to check the result by hand
- 1
Write the question as a power
Log base b of x asks what power of b gives x. For log base 10 of 1000 the question is ten to what power equals one thousand, and the answer is 3.
- 2
Check the argument is positive
Only positive numbers have real logarithms. If the number is zero or negative, stop and look for an error upstream, because no power of a positive base produces such a value.
- 3
Take the natural log of the number
Use the ln key. For 1000 the natural log is 6.907755278982137. This is an intermediate value and is not the answer unless the base happens to be e.
- 4
Take the natural log of the base
For a base of 10 the natural log is 2.302585092994046. The base's logarithm is always positive when the base is greater than 1, which is the usual case.
- 5
Divide and interpret
6.907755278982137 divided by 2.302585092994046 is 3. That is the logarithm. Sanity-check it by raising the base to that power and confirming you get back the original number.
Common Questions
How does the Logarithm Calculator work?
The base-b logarithm of x is the power b must be raised to in order to give x. Because 10 raised to the power 3 gives 1000, the base-10 logarithm of 1000 is 3. Any base can be evaluated with the change of base rule, dividing the natural log of the number by the natural log of the base.
What do I need to enter in the Logarithm Calculator?
It takes 2 inputs: Number, Base. Fields that expect a unit say so next to the label.
Where does Logarithm in your base come from?
It comes from log_b(x) = y means b^y = x — the logarithm is the exponent. Reading the equation backwards is often the fastest way to evaluate a simple logarithm by hand.
What is the most common mistake with the Logarithm Calculator?
Trying to take the logarithm of zero or a negative number. No power of a positive base produces zero or a negative value, so the logarithm is undefined over the real numbers. Encountering one almost always means an upstream sign error or a missing absolute value.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate A Logarithm page.
