Logarithm Calculator
log₁₀, ln, log₂ & custom base — with antilog, log table & step-by-step explanation
Calculation Steps
Quick Formula Reference
ln(x) = logₑ(x) [base e]
log₂(x) = ln(x) / ln(2)
logᵇ(x) = ln(x) / ln(b)
Quotient: log(a/b) = log(a) − log(b)
Power: log(a⊃n) = n × log(a)
Identity: logᵇ(b) = 1 | log(1) = 0
What is a Logarithm Calculator?
A logarithm calculator is a tool that computes the logarithm of a number for any specified base. If you know that b raised to some power gives you x, then that power is the logarithm of x in base b. In mathematical notation, if b^y = x then logᵇ(x) = y. Our free online logarithm calculator handles all four common bases — base 10, natural base e, binary base 2, and any custom base you specify — instantly and with eight-decimal precision.
Beyond the basic log computation, the calculator includes antilog (inverse log), a scrollable log table, a change-of-base converter, and an interactive demonstration of the three core logarithm rules: the product rule, the quotient rule, and the power rule. Whether you are a student solving JEE problems, an engineer computing signal levels in decibels, or a developer working with binary search complexity, this tool covers every practical use case.
Logarithm Formulas & Rules
The foundation of logarithm arithmetic rests on four rules that transform multiplication and division problems into simpler addition and subtraction problems — the original reason logarithm tables were developed centuries ago.
Product Rule
When you multiply two numbers, their logarithm equals the sum of the individual logarithms. For example, log₁₀(100 × 10) = log₁₀(100) + log₁₀(10) = 2 + 1 = 3.
Quotient Rule
Division becomes subtraction under a logarithm. log₁₀(1000 / 10) = log₁₀(1000) − log₁₀(10) = 3 − 1 = 2.
Power Rule
An exponent inside a logarithm moves out as a multiplier. log₁₀(10³) = 3 × log₁₀(10) = 3 × 1 = 3.
Change of Base Formula
Since most scientific calculators provide only log₁₀ and ln, the change-of-base formula lets you compute a logarithm in any base. For example, log₅(25) = log₁₀(25) / log₁₀(5) = 1.39794 / 0.69897 = 2.
Common vs Natural vs Binary Logarithm
The three standard logarithm bases each have a distinct domain where they naturally arise:
| Property | Common (log₁₀) | Natural (ln) | Binary (log₂) |
|---|---|---|---|
| Base | 10 | e ≈ 2.71828 | 2 |
| Notation | log(x) or log₁₀(x) | ln(x) | log₂(x) or lb(x) |
| log(1) | 0 | 0 | 0 |
| log(base) | 1 | 1 | 1 |
| log(100) | 2 | 4.60517 | 6.64386 |
| Primary use | pH, dB, Richter, tables | Calculus, physics, finance | Computer science, IT |
Worked Examples
Logarithms in Real Life
- Sound (decibels): The decibel scale for sound intensity is defined as dB = 10 × log₁₀(I / I₀), where I₀ is the reference intensity. A 10 dB increase represents a 10-fold increase in intensity.
- Earthquakes (Richter scale): The Richter magnitude is M = log₁₀(A / A₀), where A is the maximum amplitude recorded. Each whole-number increase means 10 times more ground motion.
- pH (chemistry): pH = −log₁₀([H&sup+;]). A solution with pH 3 is 10 times more acidic than one with pH 4 because of the logarithmic scale.
- Finance (compound growth): The time to double an investment at rate r is t = ln(2) / ln(1 + r) ≈ 0.693 / r. Logarithms are used in Black-Scholes options pricing and bond duration calculations.
- Computer science: Binary search on n elements takes O(log₂ n) steps. Hash table analysis, merge sort complexity, and data compression all rely on logarithmic relationships.