Logarithm Calculator

Logarithm is undefined for non-positive values. Base must be positive and not equal to 1.


Add this Calculator to Your Site

What is a Logarithm?

A logarithm answers the question: "To what power must we raise the base to get this number?" If b^y = x, then log_b(x) = y. Logarithms are the inverse operation of exponentiation.

Types of Logarithms

Common Logarithm (Base 10)

Written as log(x) or log10(x), this is the most commonly used logarithm in everyday applications.

log(100) = 2 because 10^2 = 100
log(1000) = 3 because 10^3 = 1000

Natural Logarithm (Base e)

Written as ln(x), where e is approximately 2.71828. Natural logarithms are fundamental in calculus and many scientific applications.

ln(e) = 1 because e^1 = e
ln(e^2) = 2 because e^2 = e^2

Binary Logarithm (Base 2)

Written as log2(x), commonly used in computer science and information theory.

log2(8) = 3 because 2^3 = 8
log2(256) = 8 because 2^8 = 256

Logarithm Properties

  • Product Rule: log_b(xy) = log_b(x) + log_b(y)
  • Quotient Rule: log_b(x/y) = log_b(x) - log_b(y)
  • Power Rule: log_b(x^n) = n * log_b(x)
  • Change of Base: log_b(x) = log_c(x) / log_c(b)
  • Identity: log_b(b) = 1
  • Zero Property: log_b(1) = 0

Change of Base Formula

To calculate a logarithm with any base using a calculator that only has log or ln:

log_b(x) = log(x) / log(b) = ln(x) / ln(b)

Applications of Logarithms

Science

pH scale (acidity), Richter scale (earthquakes), decibels (sound), and radioactive decay all use logarithmic scales.

Finance

Compound interest calculations, growth rates, and the rule of 72 use logarithms.

Computer Science

Algorithm complexity (Big O notation), binary search, and data compression rely on logarithms.

Statistics

Log transformations help normalize skewed data and are used in logistic regression.

Other Calculators