Skip to main content
RT
RoughTools.com
free online toolsNo signup required
🔢

Free Log Calculator

Calculate log base 10, natural log (ln), log base 2, and any custom base logarithm. Also computes the antilog (inverse). Free, private — all calculations run in your browser.

⚡ Instant results🔒 100% private🆓 Always free🚫 No signup🔢 Any base supported
2
log₁₀(x)
Common log
4.6051702
ln(x)
Natural log
6.6438562
log₂(x)
Binary log
6.6438562
log_2(x)
Base 2
Step-by-step
log₁₀(100) = log₁₀(100) = 2
ln(100) = loge(100) = 4.6051702
log₂(100) = ln(100)/ln(2) = 4.6051702/0.69314718 = 6.6438562
log_2(100) = ln(100)/ln(2) = 4.6051702/0.69314718 = 6.6438562

Same x = 100, Different Bases

6.6438562
log₂(x)
base 2
2
log₁₀(x)
base 10
4.6051702
ln(x)
base e

Logarithm Rules Reference

Product Rule
logₐ(x·y) = logₐ(x) + logₐ(y)
Quotient Rule
logₐ(x/y) = logₐ(x) − logₐ(y)
Power Rule
logₐ(xⁿ) = n · logₐ(x)
Log of 1
logₐ(1) = 0
Log of base
logₐ(a) = 1
Change of Base
logₐ(x) = log(x)/log(a) = ln(x)/ln(a)
Inverse
a^(logₐ(x)) = x
Real-World Applications
Sound (Decibels)
dB = 10 · log₁₀(P₂/P₁)
Earthquake (Richter)
M = log₁₀(I/I₀)
Chemistry (pH)
pH = −log₁₀[H⁺]
Information Theory
bits = −log₂(p)

About This Log Calculator

The Log Calculator computes logarithms in any base, including the three most commonly used: common logarithm (base 10), natural logarithm (base e), and binary logarithm (base 2). Enter any positive number and choose your base to get the logarithm and its inverse (antilog) instantly.

The Core Relationship

logₐ(x) = y ⟺ aʸ = x Change of base: logₐ(x) = ln(x) / ln(a) Product rule: logₐ(xy) = logₐ(x) + logₐ(y) Power rule: logₐ(xⁿ) = n × logₐ(x)

Logarithms are the inverse of exponentiation. Where exponentiation asks “what is aˢ?”, the logarithm asks “what power s gives me x when I raise a to it?” This inverse relationship is what makes logarithms invaluable for solving exponential equations and working with data that spans many orders of magnitude.

Assumptions and Limitations

  • Logarithms are only defined for positive real numbers — log(0) = −∞, log of negatives is undefined in real numbers
  • The base must be positive and not equal to 1 — log base 1 is undefined
  • For complex logarithms (log of negative numbers), a separate complex analysis calculator is needed

Privacy Notice

All calculations run in your browser. No data is transmitted or stored. See our Privacy Policy.

Quick Reference

Input / ParameterDescriptionExample Value
log₁₀(x)Common logarithm (base 10)log₁₀(1000) = 3
ln(x)Natural logarithm (base e ≈ 2.71828)ln(e²) = 2
log₂(x)Binary logarithm (base 2)log₂(32) = 5
logₐ(x)Custom base: ln(x) / ln(a)log₃(81) = 4
Antilog₁₀10^y — inverse of log₁₀antilog(3) = 1000
antilnₑeʸ — inverse of lne^2 ≈ 7.389
Defined forx > 0 only (log of negative numbers is undefined)log(0) = −∞; log(−1) = undefined

When to Use This Calculator

📚
Maths and science homework

Evaluate logarithmic expressions, verify base-change calculations, and compute complex log values for algebra, precalculus, and calculus problems.

🔬
Chemistry — pH calculations

Calculate pH = −log[H⁺] or [H⁺] = 10^(−pH). One of the most common logarithm applications in science education and lab work.

🎵
Music and acoustics

Calculate frequency ratios between musical notes (all based on log₂) and sound intensity levels in decibels (log₁₀-based).

💻
Computer science and algorithms

Calculate algorithm complexity (O(log n) for binary search) and compute log₂ values for information theory, compression, and data structures.

📈
Finance and compound growth

Use ln to solve for time in compound interest problems: t = ln(A/P) / (r × n). Logarithms are the key to reversing exponential growth equations.

💡 Pro Tips

1

The change of base formula — logₐ(x) = log(x)/log(a) = ln(x)/ln(a) — is the most practical formula in logarithms. Most calculators only have log₁₀ and ln buttons, so any other base is computed via change of base. Memorise this formula and you can compute any logarithm on any scientific calculator.

2

The three logarithm rules (product, quotient, power) are the foundation of logarithmic simplification. The product rule is why dB (decibels) add arithmetically even though power ratios multiply: 40 dB + 30 dB = 70 dB corresponds to power ratio 10,000 × 1,000 = 10,000,000 (since log of products = sum of logs).

3

In chemistry, pH = −log₁₀[H⁺]. A pH change of 1 represents a 10× change in hydrogen ion concentration. A pH of 3 is 10× more acidic than pH 4, and 100× more acidic than pH 5. This is why logarithmic scales like pH, dB, and Richter are necessary — they make enormous differences in magnitude perceptible on a human scale.

4

Natural logarithm (ln) and exponential growth are inverses: ln(eˣ) = x and e^ln(x) = x. This makes ln the natural tool for solving any problem involving exponential growth or decay: half-life, population growth, radioactive decay, compound interest, and Newton's law of cooling. If you see a problem with e or eˣ, reach for ln.

Frequently Asked Questions

🔢
Scientific Calculator
Full scientific calculator
📊
Exponent Calculator
Powers and roots (inverse of log)
📈
Statistics Calculator
Mean, median, mode, variance
🔢
Percentage Calculator
Percentage increases and decreases
📉
Half-Life Calculator
Radioactive decay using logarithms

Your input is processed locally in your browser and is never stored, transmitted, or shared with any server. See our Privacy Policy.

Share This Tool

X / TwitterWhatsAppLinkedIn