Log Calculator

Calculate logarithms.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Enter the number n (it must be greater than 0).
2
Step 2
Enter the base (greater than 0 and not 1).
3
Step 3
Press Calculate.

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?
3 in base 10, because 10^3 = 1000.
What is log base 2 of 64?
6.
What is log of 0.001?
−3 in base 10.
What is the log of a negative number?
There is no real answer. The tool rejects any number that is 0 or less.

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 YouTube
  • Finding a percentage

    Khan Academy

    Percentage basics used across many calculator pages.

    Watch on YouTube