Logarithm Calculator
Evaluate logs in any base, apply the log laws, and solve logarithmic and exponential equations.
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
- Type or paste your problem into the box above — for example
log_2(64). Use^for powers,/for fractions andsqrt()for square roots, or describe it in words. - Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
- 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
- Use the log laws to combine everything into a single logarithm on each side.
- Convert to exponential form — or, for an exponential equation, take logs of both sides.
- Solve, then reject any answer that would take the log of zero or a negative number.
Worked example:
- Combine the logsBy the product law, .
- Convert to exponential form
- Solve the quadratic, so and or .
- 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
- Solve for XLinear and multi-step equations
- Quadratic equationsRoots, discriminant and formula
- GraphingPlot and compare functions
- DerivativesPower, product, quotient and chain rules
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.