Logarithm Calculator

Logarithms convert multiplicative relationships into additive ones, making them essential in acoustics (decibels), seismology (Richter scale), chemistry (pH), information theory (bits and entropy), and financial modeling (continuously compounded interest). This calculator evaluates log in any base, natural log (ln), and log₂ — and supports the change-of-base formula for converting between bases. Whether you are solving exponential equations, analyzing signal strength, or studying algorithmic complexity (Big O notation), logarithms are the tool of choice.

star 4.7

Logarithm Calculator calculator

functions Logarithm Calculator
Must be a positive number
Must be positive and not equal to 1
Log Rules
log(a×b) = log(a) + log(b)
log(a/b) = log(a) - log(b)
log(aⁿ) = n × log(a)
calculate Result
Expression
log₁₀(100)
Result
2
Verification
10² = 100 ✓
Same Value in Other Bases
ln (base e) 4.605170
log₁₀ 2.000000
log₂ 6.643856
Change of Base Formula
log_b(x) = ln(x) / ln(b)

lightbulb Tips

  • log_b(x) = y means b^y = x
  • ln uses base e ≈ 2.718
  • log(ab) = log(a) + log(b)
  • log(a^n) = n × log(a)

functions Reference

Common Logs
log₁₀(10) = 1log₁₀(100) = 2 log₂(8) = 3log₂(16) = 4 ln(e) = 1ln(1) = 0
Constants
e ≈ 2.71828182845904

How to Use the Logarithm Calculator

calculate

Choose Type

Select log with base, natural log (ln), log₁₀, log₂, or antilog.

edit

Enter Value

Input the number to calculate the logarithm of.

tune

Set Base

For custom log, enter the base (default: 10).

visibility

View Results

See the result with verification and steps.

The Formula

A logarithm answers: 'To what power must the base be raised to get this number?' It's the inverse of exponentiation.

log_b(x) = y means b^y = x

lightbulb Variables Explained

  • log_b(x) Logarithm of x with base b
  • ln(x) Natural logarithm (base e)
  • log(x) Common logarithm (base 10)

tips_and_updates Pro Tips

1

log₁₀(x) is called 'common log' and often written as just 'log'

2

ln(x) is natural log with base e ≈ 2.71828

3

log₂(x) is binary log, commonly used in computer science

4

Logarithm is the inverse of exponentiation: if bˣ = y, then log_b(y) = x

5

log(a×b) = log(a) + log(b) - useful for simplifying calculations

6

Change of base: log_a(x) = ln(x)/ln(a) = log(x)/log(a)

Calculate logarithms with any base, natural log (ln), common log (log₁₀), binary log (log₂), and antilog. Get step-by-step solutions, solve logarithmic equations, and review the log rules.

Understanding Logarithms: The Inverse of Exponentiation

A logarithm answers one question: to what power must the base be raised to produce a given number? If 10² = 100, then log₁₀(100) = 2. Because the logarithm undoes exponentiation, it compresses huge ranges of values into manageable numbers — which is why it underpins scientific scales, signal processing, and algorithm analysis. The base must be positive and not equal to 1, and the argument must be positive, since no power of a positive base yields zero or a negative result.

Types of Logarithms: Log₁₀, Natural Log (ln), and Log₂

Common log (log₁₀) uses base 10 and is the default when 'log' is written with no base — it measures orders of magnitude on scales like the Richter scale and decibels. Natural log (ln) uses base e ≈ 2.71828 and is the language of continuous growth, calculus, and compound interest. Binary log (log₂) uses base 2 and counts halvings, making it central to computer science and information theory. All three are connected by the change-of-base formula, so any one can be computed from another.

How to Solve Logarithmic Equations Step by Step

Solving a logarithmic equation follows a repeatable process. First, use the log rules to condense each side into a single logarithm. If both sides are logs with the same base — log_b(M) = log_b(N) — apply the one-to-one property and set M = N. If a log equals a plain number, log_b(x) = y, rewrite it in exponential form as x = b^y. For example, log₂(x) + log₂(x−2) = 3 condenses to log₂(x²−2x) = 3, so x²−2x = 2³ = 8, which factors to (x−4)(x+2) = 0, giving x = 4 or x = −2. Always substitute back: x = −2 makes log₂(−2) undefined, so it is an extraneous solution and is rejected, leaving x = 4.

Logarithm Rules and Laws: Product, Quotient, and Power

Three laws govern every logarithm. The product rule states log_b(MN) = log_b(M) + log_b(N); the quotient rule states log_b(M/N) = log_b(M) − log_b(N); and the power rule states log_b(Mᵏ) = k·log_b(M). Two identities follow directly: log_b(1) = 0 and log_b(b) = 1. To change base, use log_b(x) = ln(x)/ln(b) = log₁₀(x)/log₁₀(b). These laws let you expand a single log into a sum — log_b(x²y/z) = 2·log_b(x) + log_b(y) − log_b(z) — or condense several logs into one, which is the essential first step when solving an equation or simplifying an expression.

Real-World Applications: Richter Scale, Decibels, and pH

Logarithms turn multiplication into addition, which is why they describe scales that span many orders of magnitude. A magnitude-6 earthquake releases 10² = 100 times the ground-shaking amplitude of a magnitude-4 quake, because the Richter scale is log₁₀ of amplitude. Sound is measured in decibels as 10·log₁₀(P/P₀), and acidity in chemistry as pH = −log₁₀[H⁺]. In finance, the time to grow an investment under continuous compounding is t = ln(A/P)/r. In computing, binary search runs in O(log₂ n) time — about 20 steps to find one item among a million.

code

Embed this Logarithm Calculator on your site

Free for any site. Copy the snippet below and paste into your HTML — no attribution required beyond the built-in credit link.

<iframe src="https://calculators.im/embed/logarithm-calculator" width="100%" height="720" style="border:0;max-width:100%;" loading="lazy" title="Logarithm Calculator by Calculators.im"></iframe>
<p style="font-size:12px;text-align:center;color:#64748b;margin-top:6px;">Powered by <a href="https://calculators.im/logarithm-calculator?utm_source=embed&utm_medium=snippet&utm_campaign=logarithm-calculator">Logarithm Calculator</a> by Calculators.im</p>
open_in_new Preview embed Auto-resizing iframe. Mobile responsive. Works with WordPress, Ghost, Webflow, and plain HTML.

Frequently Asked Questions