Mathematics · Updated 2026

Log Calculator

Calculate logarithms in any base: log base 10 (common log), natural log (ln, base e), log base 2, or any custom base. Includes inverse log, all bases simultaneously, and the change-of-base formula.

log, ln, log₂
Custom Base
Inverse Log (Antilog)
All Bases at Once
Ad · 728x90
log
Logarithm Calculator
log, ln, log₂, any base
Must be a positive number greater than 0
Quick examples

Enter a positive number and choose a base to calculate its logarithm.

Ad · 300x250
Ad · 300x600

Logarithms Definition & Laws

A logarithm answers: "To what power must I raise the base to get this number?" log₁₀(1000) = 3 because 10³ = 1000. Logarithms convert multiplication to addition, making them essential in science, engineering, music, and computing.

The three most common: log (base 10, science/engineering), ln (natural log, base e ≈ 2.718, calculus and growth), log₂ (base 2, computing and information theory).

Logarithm Laws
Product: log(ab) = log(a) + log(b). Quotient: log(a/b) = log(a) − log(b). Power: log(a^n) = n × log(a). These convert multiplication into addition.
Natural Log (ln)
Base e ≈ 2.71828. Inverse: e^(ln x) = x. Appears in growth/decay, compound interest, probability. ln(1) = 0. ln(e) = 1. ln(e^2) = 2.
Change of Base Formula
log₂(x) = log(x)/log(b) = ln(x)/ln(b). Use any available base to calculate any other. Example: log₅(25) = log(25)/log(5) = 2.
Antilog (Inverse Log)
Antilog₁₀(y) = 10^y. If log₁₀(x) = 2.5, then x = 10^2.5 ≈ 316.23. Used to convert log-scale values back to linear scale.
Ad · 728x90
Logarithm Questions
What is a logarithm?+
A logarithm is the inverse operation of exponentiation. log₂(x) = y means b^y = x. Example: log₁₀(100) = 2 because 10² = 100. Logarithms answer: "What power do I need to raise this base to get this number?" They convert multiplication into addition: log(a×b) = log(a) + log(b), which made them essential before calculators for astronomical and navigational calculations.
What is the difference between log and ln?+
"log" usually means log base 10 (common logarithm). "ln" means log base e (natural logarithm), where e ≈ 2.71828. log₁₀(10) = 1. ln(e) = 1. Both satisfy log(1) = 0. In pure mathematics and calculus, "log" often means ln. In engineering and practical science, "log" means log₁₀. Always check context. They are related by: log₁₀(x) = ln(x) / ln(10) = ln(x) / 2.302585.
What is Euler's number e and why does it matter?+
e = 2.71828182845... is an irrational constant that arises naturally in mathematics. It is the base of the natural logarithm. Key property: d/dx(e^x) = e^x — e^x is its own derivative, making it the natural base for exponential growth and decay. It appears in: compound interest (continuously compounded), population growth, radioactive decay, the bell curve (normal distribution), and Euler's identity e^(iπ) + 1 = 0, called the most beautiful equation in mathematics.
What are the laws of logarithms?+
Product rule: log(a×b) = log(a) + log(b). Quotient rule: log(a/b) = log(a) − log(b). Power rule: log(a^n) = n × log(a). Change of base: log₂(x) = log(x)/log(b). Special values: log₂(1) = 0, log₂(b) = 1. These rules allow complex logarithm calculations to be broken into simpler parts. Example: log(1000×100) = log(1000) + log(100) = 3 + 2 = 5.
What is the change-of-base formula?+
Change of base: log₂(x) = log_a(x) / log_a(b). Most commonly: log₂(x) = ln(x)/ln(b) = log(x)/log(b). Example: log₅(25) = log(25)/log(5) = 1.39794/0.69897 = 2. Verify: 5² = 25. This is how calculators with only log and ln buttons can compute logarithms of any base. It works because both sides of the formula equal the same exponent.
What is an antilog?+
The antilog (antilogarithm) is the inverse of a logarithm. If log₁₀(x) = y, then antilog₁₀(y) = 10^y = x. Example: log₁₀(x) = 2.5. x = 10^2.5 ≈ 316.23. For natural log: if ln(x) = y, then antiln(y) = e^y = x. Antilogs are used to convert log-scale results back to linear scale, for example when reading pH scales, decibel levels, or Richter scale values.
Why do we use logarithms in real life?+
pH scale (acidity): pH = −log₁₀[H+]. Each pH unit = 10x change in acidity. Decibels (sound): dB = 10 × log₁₀(power ratio). Richter scale (earthquakes): each unit = 10x more ground motion. Musical frequency: doubling frequency = 1 octave (log₂ scale). Algorithm complexity: O(log n) for binary search. Computer storage: 2^10 = 1,024 ≈ 1K. Wherever values span many orders of magnitude, a log scale makes them manageable.
What is log base 2 used for?+
Log base 2 (log₂ or lg) is fundamental in computer science and information theory. It answers: "How many times must I divide by 2 to reach 1?" log₂(1024) = 10, meaning 1024 = 2^10 = 1 kilobyte. Uses: binary search complexity O(log₂ n), information entropy (bits of information = log₂ of possible outcomes), musical intervals, and comparing exponents in algorithm analysis. Claude Shannon founded information theory using log₂.
Can you take the log of a negative number or zero?+
Not in real numbers. log(0) is undefined (approaches −∞ as x approaches 0 from the right). log(negative number) is undefined in real numbers because no real power of a positive base gives a negative result. In complex number mathematics, logarithms of negative numbers are defined but yield complex results: ln(−1) = iπ (Euler's formula). This calculator works with positive real numbers only.
What is log of 1 in any base?+
log₂(1) = 0 for any valid base b. This is because b^0 = 1 for any non-zero b. So log₁₀(1) = 0, ln(1) = 0, log₂(1) = 0, log₅(1) = 0. Also: log₂(b) = 1 for any base b (since b^1 = b). These two facts — log(1) = 0 and log(base) = 1 — are the anchor points for understanding any logarithm.