Logarithm Calculator — log, ln, Custom Base

Calculate logarithms in base 10, base e (natural), base 2, or any custom base. See the change-of-base formula and antilogarithm. Everything runs in your browser — nothing is stored or sent.

Ad Space

How Logarithm Calculator — log, ln, Custom Base Works

Calculate logarithms in any base — log, ln, log2, and custom bases with change-of-base formula. Enter your values into the form above and the calculator processes them instantly in your browser — no data is sent to any server.

What Are Logarithms?

A logarithm is the inverse of exponentiation. If by = x, then logb(x) = y. In words: the logarithm base b of x is the power to which b must be raised to produce x. Logarithms compress large ranges of numbers into manageable scales, which is why they appear throughout science, engineering, finance, and information theory.

Key Formulas

Definition: logb(x) = y means by = x

Change of base: logb(x) = ln(x) / ln(b) = log10(x) / log10(b)

Antilog: antilogb(y) = by

Logarithm Rules

Common Logarithm vs Natural Logarithm

The common logarithm (log10 or simply "log") uses base 10. It is used in decibel scales, pH measurements, the Richter scale for earthquakes, and order-of-magnitude estimates. The natural logarithm (ln or loge) uses Euler's number e (approximately 2.71828) as its base. It appears naturally in calculus, compound interest, population growth models, and radioactive decay.

Binary Logarithm

The binary logarithm (log2) uses base 2 and is fundamental in computer science. It tells you how many bits are needed to represent a number — for example, log2(256) = 8, meaning 256 values fit in 8 bits. It also determines the depth of balanced binary trees and the number of steps in binary search.

Antilogarithm (Inverse)

The antilogarithm reverses the logarithm operation. If log10(x) = 3, then antilog10(3) = 103 = 1000. This calculator shows the antilog for all bases so you can verify your work in both directions.

Applications

Logarithms are used to measure earthquake magnitude (Richter scale), sound intensity (decibels), acidity (pH), information entropy (bits), financial growth rates (continuously compounded interest), and algorithm complexity (O(log n) for binary search). They are one of the most practical mathematical functions you will encounter.

Frequently Asked Questions

What is a logarithm?

A logarithm answers the question: to what power must the base be raised to produce a given number? For example, log base 10 of 1000 equals 3 because 10^3 = 1000. In notation, log\u2081\u2080(1000) = 3.

What is the difference between log and ln?

log (common logarithm) uses base 10 and is written log\u2081\u2080(x). ln (natural logarithm) uses base e (approximately 2.71828) and is written log\u2091(x) or ln(x). Both are widely used: log\u2081\u2080 in engineering and science, ln in calculus and pure mathematics.

What is the change of base formula?

The change of base formula lets you calculate a logarithm in any base using a different base: log_b(x) = ln(x) / ln(b) = log\u2081\u2080(x) / log\u2081\u2080(b). This is how calculators compute logarithms in arbitrary bases.

Can you take the logarithm of a negative number?

In the real number system, logarithms are only defined for positive numbers. The logarithm of zero is undefined (negative infinity), and the logarithm of a negative number requires complex numbers. This calculator works with positive real numbers only.

What is an antilogarithm?

An antilogarithm reverses the logarithm operation. If log_b(x) = y, then the antilog is x = b^y. For common logs, antilog(y) = 10^y. For natural logs, antilog(y) = e^y. It is simply exponentiation with the log base.