Logarithm Calculator
About this tool
About Logarithm Calculator
A logarithm answers the question: what power do I raise the base to in order to get this number? log10(1000) = 3 because 10³ = 1000. This calculator works in the common log (base 10), the natural log ln (base e ≈ 2.71828), the binary log (base 2) used in computing and information theory, or any custom base you type. For every input it also lists ln, log10 and log2 side by side and shows the change-of-base formula it used, so you can follow the working. The Antilog tab reverses the process and turns a logarithm back into the original number, which is useful for pH, decibels and the Richter scale. Exact powers come out as clean whole numbers (log2 of 8 is exactly 3, not 2.9999999), and invalid inputs such as zero, negatives or base 1 get a clear explanation. All calculations stay in your browser.
Built and maintained by Abhi JainUpdated
How to Calculate a Logarithm
- 1
Choose a tab
Pick Logarithm to find a log, or Antilog to reverse one.
- 2
Enter the value
Type Number (x), or Logarithm value (y) on the Antilog tab.
- 3
Pick the base
Choose 10, e, 2 or Custom base from Base. For a custom base, fill in Custom base (if chosen).
- 4
Read the result
See the answer with ln, log10 and log2 and the change-of-base formula.
Logarithm Calculator: questions and answers
How do I calculate a log with any base?
Use the change-of-base formula: log_b(x) = ln(x) ÷ ln(b). For log_3(81): ln 81 ÷ ln 3 = 4.394 ÷ 1.0986 = 4.
What is the difference between log and ln?
log usually means base 10 (common log), and ln means base e ≈ 2.71828 (natural log). ln(x) = log10(x) × 2.302585.
Why can't I take the log of 0 or a negative number?
No real power of a positive base gives 0 or a negative result, so the logarithm is undefined there. As x approaches 0, log(x) heads toward minus infinity.
What is an antilog?
The inverse of a logarithm: if log_b(x) = y, then x = b^y. The antilog of 3 in base 10 is 10³ = 1,000.
What are the main log rules?
log(ab) = log a + log b, log(a/b) = log a − log b, and log(a^n) = n × log a, for any valid base.
Related Tools
- Exponent CalculatorPowers x^y (exact for whole numbers) and nth roots, including negative and fractional exponents.
- Scientific CalculatorFull scientific calculator with trig in degrees or radians, logs, powers, factorials, memory, history and keyboard input.
- Unit ConverterConvert length, weight, temperature, area, volume, speed, data and more with exact factors.
- Quadratic Equation SolverSolve ax² + bx + c = 0 with real or complex roots, exact radical form, vertex and steps.