Logarithm Calculator

Last updated October 2026

This logarithm calculator finds the log of a number in any base, including the natural log (ln), the common log (base 10) and the binary log (base 2). It also finds antilogs and converts between log form and exponential form. Every answer comes with a step-by-step solution and a check of the result, and no signup is needed.

Calculation

Logarithm with any base

Press Enter to calculate

Formula

How to Use This Logarithm Calculator

  1. Pick a tab. Log handles any base, ln and log₁₀ are the natural and common logs, Antilog undoes a log, and Convert form switches between log and exponential form.
  2. Type your numbers. Whole numbers, decimals, fractions such as 1/2, and the letter e (Euler’s number) all work. You can also type e^3 for a power of e.
  3. Click Calculate or press Enter. The Step-by-Step Solution box opens directly under the inputs.
  4. Read the answer, then the key values such as the exponential form and the same answer worked out with ln and with log base 10.
  5. Follow the numbered steps and the Check your answer line, then use Copy result or Download PDF to keep the working.
  6. Click Reset to clear the inputs and start again.

Where an answer is a whole number or a simple fraction, such as log₂(8) = 3 or log₄(8) = 3/2, the calculator finds it exactly and says so. Other answers are rounded to 10 significant digits and marked with the ≈ sign.

What the Step-by-Step Solution Shows

After you press Calculate, the answer box shows the method as well as the number.

What Is a Logarithm?

A logarithm is the inverse of an exponent. An exponent asks what you get when a base is multiplied by itself several times. A logarithm asks the reverse: how many times must the base be multiplied to reach a given number? Since 103 = 1,000, the logarithm of 1,000 in base 10 is 3.

Logs turn multiplication into addition, which is why they were used to speed up hand calculation before calculators, and why they still describe quantities that grow over huge ranges, such as sound, earthquakes and acidity.

Logarithm Formula

log_b(x) = y  means  b^y = x

Types of Logarithms

NameBaseWrittenCommon use
Common log10log(x) or log₁₀(x)Scientific notation, pH, decibels
Natural loge ≈ 2.71828ln(x)Calculus, growth and decay, finance
Binary log2log₂(x)Computer science, information, doublings

Log Rules

RuleFormulaExample
Productlog(ab) = log(a) + log(b)log(20) = log(2) + log(10)
Quotientlog(a/b) = log(a) − log(b)log(5) = log(10) − log(2)
Powerlog(an) = n × log(a)log(8) = 3 × log(2)
Log of 1logb(1) = 0ln(1) = 0
Log of the baselogb(b) = 1log₂(2) = 1
Change of baselogb(x) = logc(x) / logc(b)log₂(10) = ln(10) / ln(2)

Change of Base Formula

Most calculators only have a log button (base 10) and an ln button (base e). To find a log in any other base, divide two of those logs.

log_b(x) = ln(x) / ln(b) = log(x) / log(b)

Example: log5(200)

  1. Write it as a ratio: log5(200) = ln(200) / ln(5)
  2. Find each natural log: ln(200) is about 5.2983 and ln(5) is about 1.6094
  3. Divide: 5.2983 / 1.6094 is about 3.2920
log5(200) ≈ 3.2920

The key values box on the Log tab shows this same answer worked out with ln and with log base 10, so you can see that both routes agree.

How to Use the Log and ln Buttons

On a scientific calculator, log is base 10 and ln is base e. On many models you press the key first and then type the number, then press equals. Some newer models show the log first as a template, so check how yours displays it.

Worked Examples, Step by Step

Example 1: log2(32)

  1. Ask: 2 raised to what power gives 32?
  2. List powers of 2: 2, 4, 8, 16, 32, which is the 5th power
  3. So 25 = 32
log2(32) = 5

Example 2: Solve 4x = 100 with a log

  1. Rewrite in log form: x = log4(100)
  2. Change of base: x = log(100) / log(4) = 2 / 0.60206
  3. Divide: x is about 3.3219
x ≈ 3.3219

Example 3: Antilog of 2.5

  1. The antilog base 10 of y is 10y
  2. Split the power: 102.5 = 102 × 100.5 = 100 × 3.1623
  3. Multiply: 316.23
antilog(2.5) ≈ 316.23

Common Log Values

xlog₁₀(x)ln(x)log₂(x)
1000
20.301030.693151
40.602061.386292
50.698971.609442.32193
80.903092.079443
1012.302593.32193
10024.605176.64386
1,00036.907769.96578

Where Logarithms Are Used

To go the other way and build a number from a base and a power, use the Exponent Calculator.

Limits and Rounding

Inputs can have up to 15 digits and a power of 10 from −100 to 100. The base of a logarithm must be positive and not 1, and the number must be positive. Logs that are whole numbers or simple fractions are found exactly. Other answers are rounded to 10 significant digits and marked with the ≈ sign.

Frequently Asked Questions

What is a logarithm in simple terms?
A logarithm answers one question: what power must the base be raised to in order to get this number? For example, log₂(8) = 3 because 2³ = 8.
What is the difference between log and ln?
log with no base shown is base 10, and ln is the natural log with base e, which is about 2.71828. Both can be rewritten in any other base with the change of base formula.
How do I calculate log base 2?
Ask which power of 2 gives your number. For log₂(32) the answer is 5 because 2⁵ = 32. For numbers that are not exact powers of 2, use the Log tab with base 2 to get a decimal.
How do I use the change of base formula?
Use log_b(x) = ln(x) / ln(b), or the same ratio with base 10 logs. This lets you find a log in any base with just the ln or log buttons on a basic scientific calculator.
What is an antilogarithm?
The antilog reverses a log. If log₁₀(N) = 3, then N = 10³ = 1,000. In general the antilog base b of y equals b raised to the power y.
Why is log(0) undefined?
No power of a positive base ever equals 0, so there is no answer. As x gets closer to 0 from the right, log(x) heads toward negative infinity.
Can you take the log of a negative number?
Not with real numbers. A positive base raised to any real power is always positive, so the log of a negative number has no real answer. The calculator explains this instead of showing an error code.
How do I convert between log form and exponential form?
They say the same thing: log_b(x) = y means b^y = x. Use the Convert form tab, fill in any two of base, number and result, and leave the third blank to solve for it.
What are the main log rules?
The product rule turns multiplication into addition, the quotient rule turns division into subtraction, and the power rule moves an exponent to the front as a multiplier. They are summarized in the log rules table on this page.

Related Calculators

Author

StepSolvers Team

StepSolvers is a free collection of step-by-step math calculators. The StepSolvers team builds every calculator to show its full working, not just the final answer, so you can follow each step and learn the method. About StepSolvers