Input
Result
log10(100) = 2
2
log10(100)
ln(x)
4.60517019
log2(x)
6.64385619
Result
2
Inverse bˆresult
100
Change of Base
Logarithm Curve
Product Rule
logb(M×N) = logb(M) + logb(N)
Quotient Rule
logb(M/N) = logb(M) − logb(N)
Power Rule
logb(Mn) = n × logb(M)
Change of Base
logb(x) = ln(x) / ln(b)
Common Log Values
xlog₁₀(x)ln(x)log₂(x)
1000
20.301030.6931471
e ≈ 2.7180.43429411.442695
50.698971.6094382.321928
1012.3025853.321928
201.301032.9957324.321928
501.698973.9120235.643856
π ≈ 3.14160.4971501.1447291.651496
10024.6051706.643856
1,00036.9077559.965784
e² ≈ 7.3890.86858922.885390
Log Law Summary
LawFormula
Productlogb(MN) = logbM + logbN
Quotientlogb(M/N) = logbM − logbN
Powerlogb(Mn) = n ⋅ logbM
Changelogb(x) = ln(x) / ln(b)
Identitylogb(b) = 1
Zerologb(1) = 0
Inverseblogb(x) = x
🔊 Decibels (Sound Level)

Formula: dB = 10 × log₁₀(I / 10⁻¹²)

⚕️ pH (Acidity)

Formula: pH = −log₁₀[H⁺]

🌞 Earthquake Magnitude (Richter)

Formula: M = log₁₀(A/A₀)

📈 Doubling Time

Formula: t = ln(2) / ln(1 + r)

How to Use This Calculator

1

Enter a value

Type a positive number in the Value (x) field. The calculator updates instantly as you type.

2

Choose a base

Select log₁₀ (common), ln (natural), log₂ (binary), or Custom to enter any base you need.

3

Read the results

The live equation, hero value, and stat grid show the result along with ln(x) and log₂(x) for comparison.

4

Explore & practice

Switch to the Log Laws tab to practice product, quotient, power, and change-of-base rules interactively.

Log Laws

logb(MN) = logbM + logbN
logb(M/N) = logbM − logbN
logb(Mn) = n ⋅ logbM
logb(x) = ln(x) / ln(b)
logb(b) = 1
logb(1) = 0
blogb(x) = x
ln(e) = 1
log10(10) = 1

Key Terms

Logarithm
The exponent to which a base must be raised to produce a given number. logb(x) = y means by = x.
Base
The number that is repeatedly multiplied. Must be positive and not equal to 1. Common bases: 10, e, 2.
Argument
The value inside the log, i.e. x in logb(x). Must be positive for real-valued results.
Natural Log (ln)
Logarithm with base e ≈ 2.71828. Used extensively in calculus, physics, and finance.
Common Log
Logarithm with base 10. Written as log or log₁₀. Used for pH, decibels, and the Richter scale.
Antilog
The inverse of a logarithm: antilogb(y) = by. If log₁₀(x) = 2, then antilog = 10² = 100.

Worked Examples

Example 1 — Common Log

Find log₁₀(1000)
Ask: 10 to what power = 1000?
10³ = 1000
log₁₀(1000) = 3

Example 2 — Natural Log

Find ln(e⁵)
Using the power rule: ln(e5) = 5 × ln(e)
ln(e) = 1, so 5 × 1 = 5
ln(e⁵) = 5

Example 3 — Custom Base

Find log₃(81)
3 to what power = 81?
3⁴ = 81
log₃(81) = 4

Example 4 — Change of Base

Find log₅(200) using base 10
= log₁₀(200) / log₁₀(5)
= 2.30103 / 0.69897
log₅(200) ≈ 3.292

Logarithms in the Real World

Sound and Decibels

The human ear can detect an enormous range of sound intensities — from a barely perceptible whisper to a jet engine. Because this range spans 12 orders of magnitude, a linear scale would be impractical. Decibels use a base-10 logarithm: dB = 10 × log₁₀(I / I₀), where I₀ = 10⁻¹² W/m². A normal conversation (60 dB) is 10&sup6; times more intense than the threshold of hearing.

pH and Chemistry

The pH scale measures acidity: pH = −log₁₀[H⊃]. Pure water at 25°C has [H⊃] = 10⁻⁷ mol/L, giving pH 7. Each pH unit represents a 10× change in concentration — vinegar at pH 3 is 10,000 times more acidic than water.

Earthquake Magnitude

The Richter scale uses M = log₁₀(A/A₀). A magnitude 7 earthquake releases roughly 32 times more energy than a magnitude 6, because each whole number increase corresponds to about 31.6× more seismic energy.

Information Theory and Computers

Binary logarithms (log₂) underpin computer science. The number of bits needed to represent n possibilities is ⌈log₂(n)⌉. This is why 8 bits can store 2⁸ = 256 values, and why searching a sorted list of n items takes O(log n) comparisons.

Finance and Doubling Time

Compound growth uses natural logarithm to solve for time: t = ln(FV/PV) / ln(1 + r). The Rule of 72 estimates doubling time as 72/r%, derived from the logarithm approximation ln(2) / r ≈ 0.693/r.

Frequently Asked Questions

What is the difference between log and ln?

log (or log₁₀) is the common logarithm with base 10. ln is the natural logarithm with base e ≈ 2.71828. They are both logarithms — just with different bases. ln is preferred in calculus and physics; log₁₀ is used in chemistry (pH) and acoustics (dB).

Can you take the logarithm of 0 or a negative number?

No — in the real number system. log(0) approaches −∞ (undefined). The logarithm of a negative number requires complex numbers. This calculator shows an error for x ≤ 0.

What does the inverse / antilog mean?

The antilog is the inverse operation: if logb(x) = y, then bˆy = x. For example, log₁₀(100) = 2, so antilog₁₀(2) = 10² = 100. This calculator shows the inverse as a verification step.

What is the change-of-base formula and when do I need it?

logb(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b). You need it when your calculator only has ln or log₁₀ buttons but you want a different base — or when simplifying expressions with mixed bases.

Why is log₂ important in computing?

Binary logarithms directly measure the number of bits in a value. log₂(n) tells you how many times you can halve n before reaching 1 — which is exactly the number of steps in binary search, and the depth of a balanced binary tree.

What are logarithm graphs shaped like?

Logarithm curves are concave, slowly increasing functions. They pass through (1, 0) for any base — because logb(1) = 0. They approach −∞ as x → 0⁺, and grow without bound but very slowly. Higher bases result in flatter curves; bases less than 1 produce decreasing curves.