Log Calculator

A logarithm answers the question “what power do I raise this base to, to get my number?” log₂ 8 is 3, because 2 × 2 × 2 is 8. Pick the common log (base 10), the natural logarithm (ln, base e) or any base, and type your number. The steps show the change-of-base formula with your numbers, the same way you'd do it on a calculator.

Log base 5
2.2266 Rounded to 4 decimals

log₅(36) is 2.2266: the power you raise 5 to, to get 36.

Common log (log₁₀) 1.5563
Natural log (ln) 3.5835
Lies between 2 and 3

What is a logarithm?

A logarithm is the power you raise a base to, to get a number: y = logb(x) means the same as by = x. So log₁₀(1,000) is 3, because 10³ is 1,000. The two you’ll meet most are the common log, base 10, often written just “log”, and the natural logarithm (ln), base e. The base must be above 0 and not 1, and the number must be above 0.

Source OpenStax College Algebra 2e · 6.3 Logarithmic Functions: definition, common and natural logarithms ↗

How to calculate a logarithm with any base

Change of base: log_b(x) = ln(x) ÷ ln(b)

Here it is with your numbers:

  1. log₅(36) = ln(36) ÷ ln(5)
  2. log₅(36) = 3.583519 ÷ 1.609438
  3. log₅(36) = 2.2266

It means you raise 5 to the power 2.2266 (rounded) to get 36.

This is the change-of-base formula: logb(x) = ln(x) ÷ ln(b). It works with log (base 10) in place of ln too, which is how you find any logarithm on a calculator that only has log and ln buttons.

Source OpenStax College Algebra 2e · 6.5 Logarithmic Properties: the change-of-base formula ↗

Common log and natural log table

Tap a number to see the steps.

xlog(x)ln(x)
100
20.3010.6931
30.47711.0986
40.60211.3863
50.6991.6094
60.77821.7918
70.84511.9459
80.90312.0794
90.95422.1972
1012.3026
201.3012.9957
501.6993.912
10024.6052
1,00036.9078

FAQs

What is a logarithm?

A logarithm is an exponent. logb(x) is the power you raise b to, to get x: log₂(8) is 3, because 2³ is 8. log written without a base usually means base 10, the common log.

Source OpenStax College Algebra 2e · 6.3 Logarithmic Functions: definition, common and natural logarithms ↗

What is natural log?

The natural log, ln, is the logarithm with base e, an irrational number that is 2.718282 to six decimal places. So ln(x) is the power you raise e to, to get x, and ln(1) is 0.

Source OpenStax College Algebra 2e · 6.1 Exponential Functions: the number e ↗

How to evaluate logarithms?

Ask what power of the base gives the number. For log₃(1/27): 3⁻³ is 1/27, so log₃(1/27) is −3. When it isn’t a whole power, use the change-of-base formula below, or this calculator.

Source OpenStax College Algebra 2e · 6.3 Logarithmic Functions: definition, common and natural logarithms ↗

How to use logarithms in calculator?

Most calculators only have log (base 10) and ln (base e). For any other base, divide: logb(x) = log(x) ÷ log(b), or ln(x) ÷ ln(b), which gives the same answer. log₅(36) is log(36) ÷ log(5), which is 2.2266.

Source OpenStax College Algebra 2e · 6.5 Logarithmic Properties: the change-of-base formula ↗

Can the base of a logarithm be negative?

No. The base has to be a positive number other than 1, and you can only take the log of a number above 0.

Source OpenStax College Algebra 2e · 6.3 Logarithmic Functions: definition, common and natural logarithms ↗

Sources

Related calculators