Log Calculator
Calculate logarithms.
About this tool
Enter a number and a base to find the power the base must be raised to in order to give that number. log base 2 of 64 is 6 because 2^6 = 64.
How to use
How it works
A logarithm is the inverse of an exponent: if b^y = n then log_b(n) = y. For a base without a nice answer, the tool uses the change-of-base rule log_b(n) = ln(n) ÷ ln(b). Base 10 gives the common log and base e (2.71828…) gives the natural log.
log_b(n) = y ⇔ b^y = n log_b(n) = ln(n) ÷ ln(b)
Worked example
A log that is not a whole number
- Input
- n = 20, base = 3
- Output
- 2.72683302786
- Walkthrough
- 3^2 = 9 and 3^3 = 27, so the answer lies between 2 and 3. ln(20) ÷ ln(3) = 2.9957 ÷ 1.0986 = 2.7268.
Limitations
- The number must be greater than 0: log of −5 is rejected.
- The base must be greater than 0 and not equal to 1.
Questions
What is log of 1000?
What is log base 2 of 64?
What is log of 0.001?
What is the log of a negative number?
Features
- Any base
- Change-of-base working
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Introduction to scientific notation
Khan Academy
Scientific notation for calculator and number tools.
Watch on YouTubeFinding a percentage
Khan Academy
Percentage basics used across many calculator pages.
Watch on YouTube
- Geometry Index
Math is Fun
Shape and formula index for geometry calculators.
- Euler's Number (e)
Math is Fun
e for exponential and scientific calculator keys.