Logarithm Formula — Calculator and Worked Example

The Logarithm formula is shown below alongside our interactive calculator. Enter your own values and we apply the formula step by step so you can see exactly how the result is derived.

Inputs

Results

Logarithm Result
2.0000000000
Log₁₀ (x)
2.0000000000
ln (x)
4.6051701860
Log (base)
6.6438561898

Logarithm with custom base

Antilog₁₀ (10^x)
100.0000000000
e^x
100.0000000000

Logarithm Curve

Understanding Logarithms: The Inverse of Exponentiation

A logarithm is the inverse operation of exponentiation, answering the question: 'To what power must the base be raised to get a given number?' For example, log₂(8) = 3 because 2³ = 8. Logarithms are essential in mathematics, science, and engineering for solving exponential equations, analyzing data across wide ranges, and working with very large or small numbers. Understanding logarithms helps you solve exponential problems, work with scientific data, understand growth and decay, and perform calculations that would be difficult with standard arithmetic. Whether you're studying algebra, analyzing data, or working in science or engineering, mastering logarithms opens up powerful problem-solving tools.

Key properties

Base: The Foundation of the Logarithm

The base is the number being raised to a power. Common bases include 10 (common logarithm, log₁₀), e (natural logarithm, ln, where e ≈ 2.718), and 2 (binary logarithm, log₂). The base determines the logarithm's properties and applications. Understanding the base is fundamental to working with logarithms.

Argument: The Number You're Taking the Log Of

The argument is the number whose logarithm you're finding. For example, in log₁₀(100) = 2, the argument is 100. The argument must be positive for real logarithms. Understanding the argument helps you interpret what the logarithm represents.

Common Logarithm: Base 10

The common logarithm (log₁₀ or just 'log') uses base 10. It's useful for scientific calculations and data analysis. For example, log₁₀(1000) = 3 because 10³ = 1000. Common logarithms are widely used in science and engineering.

Natural Logarithm: Base e

The natural logarithm (ln) uses base e (Euler's number, approximately 2.718). It's fundamental in calculus, exponential growth/decay, and many scientific applications. For example, ln(e²) = 2. Natural logarithms appear throughout higher mathematics.

Logarithm Properties: Rules for Calculation

Key properties include: log(ab) = log(a) + log(b), log(a/b) = log(a) - log(b), log(aⁿ) = n·log(a), and logₐ(a) = 1. These properties make complex calculations manageable. Understanding these properties helps you manipulate and simplify logarithmic expressions.

Change of Base: Converting Between Bases

You can convert logarithms between different bases using the change of base formula: logₐ(x) = logᵦ(x) / logᵦ(a). This allows you to calculate any logarithm using a calculator that only has log₁₀ or ln. Understanding change of base helps you work with any logarithm regardless of base.

Formulas

Definition of Logarithm

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

This is the fundamental definition. For example, log₂(8) = 3 because 2³ = 8. The logarithm tells you what power raises the base to the argument.

Product Rule

log(ab) = log(a) + log(b)

The logarithm of a product equals the sum of logarithms. For example, log(10 × 100) = log(10) + log(100) = 1 + 2 = 3. This simplifies multiplication into addition.

Quotient Rule

log(a/b) = log(a) - log(b)

The logarithm of a quotient equals the difference of logarithms. For example, log(100/10) = log(100) - log(10) = 2 - 1 = 1. This simplifies division into subtraction.

Power Rule

log(a^n) = n·log(a)

The logarithm of a power equals the exponent times the logarithm. For example, log(10³) = 3·log(10) = 3 × 1 = 3. This simplifies exponentiation into multiplication.

Change of Base Formula

log_b(a) = log_c(a) / log_c(b)

This converts logarithms between bases. For example, log₂(8) = log₁₀(8) / log₁₀(2) = 0.903 / 0.301 = 3. This allows calculating any logarithm using common or natural log.

Logarithms in Science and Mathematics

Logarithms are essential tools in many fields: scientific calculations use logarithms to work with very large or small numbers, data analysis uses logarithmic scales to compress wide ranges, exponential equations are solved using logarithms, decibels (sound measurement) use logarithmic scales, pH (acidity measurement) uses logarithmic scales, and compound interest and population growth involve exponential relationships solved with logarithms. Students learn logarithms in algebra and calculus. Engineers and scientists use logarithms constantly. Understanding logarithms helps individuals work with exponential relationships, analyze data across wide ranges, and solve problems in science, engineering, and mathematics.

Frequently asked questions

What is a logarithm?

A logarithm answers the question: to what exponent must the base be raised to obtain a given number? For example, log_2(8) = 3.

Which bases can I use?

Any positive base not equal to 1 is allowed. Presets include base 10, base e, and base 2, but you can enter custom bases as well.

How do I change bases quickly?

Use the change-of-base formula log_b(a) = log_k(a) / log_k(b). We show the calculation using your preferred reference base (10, e, or custom).

What happens with negative inputs?

Real logarithms require positive arguments. If you enter a negative number we either block it or, with complex mode enabled, return a complex value.

Can I compute logarithms of decimals?

Yes, logarithms work with any positive number. For example, log₁₀(0.01) = -2 because 10^-2 = 0.01.

How do I solve exponential equations?

Take the logarithm of both sides. For example, 2^x = 8: log₂(2^x) = log₂(8), so x = 3. Or use ln: x·ln(2) = ln(8).

What's the difference between log and ln?

log typically means base 10 (common logarithm), while ln means base e (natural logarithm). Both are logarithms, just with different bases.

Can I add logarithms?

log(a) + log(b) = log(ab) (product rule). You add logarithms to get the logarithm of the product, not the sum of the numbers.

How do I simplify logarithmic expressions?

Use logarithm properties: combine products (add logs), combine quotients (subtract logs), simplify powers (multiply by exponent).

What if the base is 1?

Base 1 is not allowed because 1^x always equals 1, so log₁(x) would be undefined for x ≠ 1 and infinite for x = 1.

Can logarithms be negative?

Yes, logarithms of numbers between 0 and 1 are negative. For example, log₁₀(0.1) = -1 because 10^-1 = 0.1.

How do I calculate logarithms manually?

Use change of base formula with a calculator, or use logarithm tables. Modern calculators handle logarithms directly.

What about logarithms of very large numbers?

Logarithms compress large numbers. For example, log₁₀(1,000,000) = 6. This makes working with very large numbers manageable.

How do logarithms relate to exponents?

Logarithms and exponents are inverse operations. If y = b^x, then x = log_b(y). They undo each other.

Can I use logarithms for multiplication?

Yes, logarithms convert multiplication to addition: log(ab) = log(a) + log(b). This was historically used for calculations before calculators.