Logarithm Calculator

Evaluate logs in any base, apply the log laws, and solve logarithmic and exponential equations.

Try an example:

What a logarithm is

A logarithm answers the question "what power do I raise the base to?". Because , we write . In general:

is the natural logarithm, with base , and with no base usually means base 10.

How to use the logarithm calculator

  1. Type or paste your problem into the box above — for example log_2(64). Use ^ for powers, / for fractions and sqrt() for square roots, or describe it in words.
  2. Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
  3. Ask a follow-up in the same chat — "why did you do that?" or "now check it" — and it answers with the earlier working in context.

The log laws

  • Product:
  • Quotient:
  • Power:
  • Change of base:

Solving log and exponential equations

  1. Use the log laws to combine everything into a single logarithm on each side.
  2. Convert to exponential form — or, for an exponential equation, take logs of both sides.
  3. Solve, then reject any answer that would take the log of zero or a negative number.

Worked example:

  1. Combine the logsBy the product law, .
  2. Convert to exponential form
  3. Solve the quadratic, so and or .
  4. Check the domain is undefined, so is rejected. The solution is , and indeed .

Common mistakes to avoid

Splitting the log of a sum

is not . The product law applies to only.

Keeping extraneous solutions

Always check answers in the original equation. The log of zero or of a negative number is undefined.

Misplacing the power

for , but is something different.

Related calculators

Browse all calculators

Questions students ask

How do I type a log with a base?

Use an underscore: log_2(8) for . ln(x) is the natural log, and log(x) with no base means base 10.

Can it solve exponential equations?

Yes. For it rewrites 81 as and solves . When the bases don't match, it takes logarithms of both sides.

Can it condense log expressions?

Yes. Ask it to condense 2 log x - log y and it applies the power and quotient laws in reverse to get .

What's the difference between log and ln?

Only the base: uses and usually uses 10. The change-of-base formula converts between them.