How the log calculator works
A logarithm answers the question: what power must the base be raised to in order to get this number? The log base 10 of 1,000 is 3, because 10 to the power of 3 is 1,000. Enter x and the base, and the calculator uses the change of base formula, the natural log of x divided by the natural log of the base.
It also shows the natural log, the common log and the binary log of the same number. For the antilog, which is the opposite operation, switch the mode and enter the base and the power. Logarithms only exist for numbers above zero, and the base cannot be 1.
Worked examples
- log base 10 of 1,000 is 3, because 10 to the power of 3 is 1,000.
- log base 2 of 8 is 3, because 2 × 2 × 2 = 8. The log base 2 of 1,024 is 10.
- log base 5 of 125 is 3, because 5 to the power of 3 is 125.
- log base 10 of 0.01 is −2, because 10 to the power of −2 is 0.01.
- Natural log of 10 is about 2.302585.
- Antilog: base 10 raised to the power 2 is 100.
The rules of logarithms
- Product rule: log(x × y) = log x + log y.
- Quotient rule: log(x ÷ y) = log x − log y.
- Power rule: log(x^n) = n × log x.
- Special values: log of 1 is always 0, and log base b of b is always 1.
- Change of base: log base b of x = ln x ÷ ln b. This is the formula the calculator uses.
Limits of this calculator
You can only take the logarithm of a number above zero, and the base must be above zero and not equal to 1. Results use standard floating point numbers, so the check line can differ from your input by a tiny rounding amount in the last digits. Complex logarithms of negative numbers are not supported.
Common questions
What is the difference between log and ln? Log usually means the common logarithm with base 10. Ln is the natural logarithm with base e, which is about 2.71828.
What is an antilog? It is the reverse of a logarithm. If log base b of x equals y, then the antilog of y is x, which is b to the power of y.
Why can I not take the log of zero or a negative number? No power of a positive base gives zero or a negative result, so there is no answer in ordinary real numbers.
Related calculators
- Exponent Calculator, the reverse of a logarithm.
- Scientific Notation Calculator
- Scientific Calculator
- Rounding Calculator