Logarithm Calculator
Enter a positive argument and choose a common log (log₁₀), a natural log (ln), a binary log (log₂), or a custom base. The result is log_b(x) = ln(x)/ln(b). An antilog mode returns bʸ, so log and antilog can be checked against each other. The argument must be positive, and the base must be positive and not equal to 1. Use the exponent calculator for a general power, and the root calculator for n-th roots.
Logarithm calculator
On this calculator: Ctrl+Enter copies the result, Shift+Alt+L copies a link to the current inputs, Shift+Alt+R resets, Shift+Alt+P opens Print / Save PDF. These shortcuts do not run while you type in a field, except Ctrl+Enter.
Saved results on this device
Stored only in this browser, not on our servers.
How to use the logarithm calculator – log, ln, log₂, custom base and antilog
- Choose the logarithm or antilog. Common log, natural log, log base 2, a custom base, or antilog bʸ.
- Enter the argument (and the base, if you need one). x must be positive. The base must be positive and not 1.
- Read the value. The same change-of-base identity is used for every mode, so log₁₀ 1000 and a custom base of 10 cannot disagree.
Formulas on this page
The logarithm log_b(x) is the exponent to which b must be raised to obtain x: b^(log_b(x)) = x. It is defined for x > 0, b > 0 and b ≠ 1. The common cases have their own names and modes:
- log₁₀(x), the common logarithm,
- ln(x) = log_e(x), the natural logarithm, with e ≈ 2.718281828459045,
- log₂(x), often used in information and computer-science counts.
Every mode uses the change-of-base identity log_b(x) = ln(x)/ln(b). The antilog mode is the inverse operation bʸ, sharing the power function with the exponent calculator, so log₁₀ 1000 = 3 and 10³ = 1000 stay consistent.
The familiar laws follow from the definition and are stated here only as a reminder, not as extra buttons: log_b(xy) = log_b(x) + log_b(y), log_b(x/y) = log_b(x) − log_b(y), and log_b(x^k) = k log_b(x), when every letter is in the domain.
What this page is not
It is not a scientific-calculator substitute for a long mixed expression, and it is not a complex-log or discrete-logarithm tool. If you need to raise a base to a power, the exponent calculator is the clearer heading. If you need an n-th root, use the root calculator. Scientific notation (writing a number as a × 10^k) is a presentation of a power of ten; the scientific notation converter handles that rewriting.
The scientific calculator can evaluate a log inside a longer expression. Stay on this page when you want a single, shareable identity with the domain rules written out. There is no look-up table and no live API — every value comes from the same TypeScript functions the tests run.
Worked figures
- log₁₀ 1000 = 3, log₁₀ 1 = 0, log₁₀ 10 = 1.
- ln(e) = 1, ln(1) = 0.
- log₂ 8 = 3, log₂ 1/2 = −1.
- log₃ 81 = 4.
- Antilog: 10³ = 1000, e¹ = e, 2³ = 8.
Those identities are unit-tested against the same TypeScript functions the browser runs. Copy result, Copy link and Reset work as on the other GenericCalc tools. Report a mistake from the about box if a figure disagrees with a hand check.
Frequently asked questions
What is log₁₀ 1000?
3, because 10³ = 1000. That is the default example.
What is ln(e)?
1, because ln is the logarithm with base e ≈ 2.718281828459045, and e¹ = e.
What is log₂ 8?
3, because 2³ = 8.
Why is log(0) or log of a negative refused?
A real logarithm is defined only for a positive argument. This page does not return complex values.
Can the base be 1, or negative?
No. A base of 1 makes every power equal to 1, so the log is undefined. A negative base is not used for a real logarithm here.
How is change of base applied?
log_b(x) = ln(x)/ln(b) = log₁₀(x)/log₁₀(b). The engine uses natural logs internally, then divides.
What does the antilog mode do?
It computes bʸ. For base 10 that is the common antilog; for base e it is eʸ. It is the same power function as the exponent calculator.
Related calculators
Exponent Calculator – Powers, and Solving for the Base or Exponent
Compute aⁿ, or solve for the exponent or the base, with real numbers only.
Root Calculator – Square Root, Cube Root and n-th Root
Square, cube and n-th roots of a real number, with a power check.
Scientific Calculator – Trig, Logs, Powers and Roots
Trigonometry, logarithms, powers, roots and factorials in degrees or radians, with a printable tape of the working.
Scientific Notation Converter – Numbers to a × 10ⁿ and Back
Numbers to scientific, E and engineering notation, and back to decimals.
Percentage Calculator – What Is X% of Y?
X% of Y, X is what % of Y, and X is Y% of what number.
Sources and references
About this calculator
Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.
Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.