Math · Exponents & logarithms

Logarithm calculator

Calculate logb(x), common log, natural log, and antilog. See the change-of-base formula, nearby powers, and how the answer moves on the logarithmic scale.

Report error
logb(x)
—
change of base
Common · Natural
—
log10(x) · ln(x)
Antilog
—
blogb(x) = x

Logarithm curve — and your exact point

The graph changes with the selected base. The highlighted point is (x, logbx).
Live
y = logb(x)Lower powerUpper power
LIVE EXPONENT CHECK

Where does x sit between powers of the base?

Updates live
Log value—the exponent required to reach x
Lower power—b raised to the lower integer
Upper power—b raised to the next integer
Position—fractional distance between powers
Enter valid values to see how x sits between consecutive powers of b.
bᵏxbᵏ⁺¹

Nearby powers of the selected base

Live table
Exponent kbkRelation to x

Log values

The argument must be greater than 0.
The base must be positive and not equal to 1.
Concept

A logarithm is an exponent with a question mark around it

If by = x, then logb(x) = y. The calculator is solving for the missing exponent.

b
Base

The number being raised to a power.

x
Argument

The positive number inside the logarithm.

y
Exponent

The answer the logarithm is looking for.

e
Natural base

Approximately 2.718281828.

bʸ = x exponential form log_b(x) = y logarithmic form same fact

For real logarithms, the argument must be positive and the base must be positive and different from 1. Base 10 is commonly called the common logarithm; base e is the natural logarithm, written ln.

Formulas

Core logarithm formulas

These identities explain nearly every hand calculation you make with logs.

Definition
logb(x) = y ⇔ by = x

A logarithm asks for the missing exponent.

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

Use the same convenient base in numerator and denominator.

Product
logb(xy) = logb(x) + logb(y)

Multiplication becomes addition.

Quotient
logb(x/y) = logb(x) − logb(y)

Division becomes subtraction.

Power
logb(xn) = n logb(x)

An exponent can move to the front as a multiplier.

Reciprocal
logb(1/x) = −logb(x)

Taking a reciprocal changes the sign.

blogb(x) = x    and    logb(by) = y
Examples

Worked logarithm examples

Use these as patterns when you want to check a result without relying on a calculator.

Example 01 · common log

log₁₀(1000)

Ask: “10 to what power gives 1000?” Since 10³ = 1000, the answer is immediate.

log₁₀(1000) = 3
Example 02 · base 2

log₂(100)

Using change of base: log(100) / log(2) = 2 / 0.30103.

log₂(100) ≈ 6.643856
Example 03 · natural log

ln(e⁵)

The logarithm and exponential undo one another when they use the same base.

ln(e⁵) = 5
Example 04 · negative result

log₁₀(0.01)

Because 10⁻² = 0.01, the exponent is negative.

log₁₀(0.01) = −2

Common logarithm values

Reference
xlog₁₀(x)ln(x)Useful observation
0.01−2−4.605170Below 1 → negative logarithm.
0.1−1−2.30258510⁻¹ = 0.1.
100Every valid base raised to 0 is 1.
20.3010300.693147Useful for change-of-base work.
1012.30258510¹ = 10.
10024.60517010² = 100.
100036.90775510³ = 1000.
Reference tables

Choose the base that matches the problem

Different bases are useful in different contexts. The mathematics is the same; the scale changes.

Common logarithm bases

Quick reference
NotationBaseTypical contextIdentity
log₁₀(x)10Scientific notation, decimal orders of magnitude10ʸ = x
ln(x)e ≈ 2.718281828Calculus, continuous growth, natural modelseʸ = x
log₂(x)2Computer science, binary scaling2ʸ = x

Special cases to remember

Exam check
ExpressionResultWhy
log_b(1)0b⁰ = 1
log_b(b)1b¹ = b
log_b(bⁿ)nThe logarithm retrieves the exponent.
log_b(0)undefinedThere is no real exponent that makes bʸ equal zero.
log_b(negative)not realThe real logarithm requires a positive argument.
Applications

Where logarithms appear outside the classroom

Logarithms are useful when values span many orders of magnitude or when multiplication and exponential growth need to be expressed on a manageable scale.

pH
Acidity

A logarithmic scale used for hydrogen-ion concentration.

dB
Sound

Decibels express ratios on a logarithmic scale.

2ⁿ
Computing

Binary logarithms help describe powers of two and algorithmic growth.

ln
Growth

Natural logarithms arise naturally in continuous growth and calculus.

1×10×100×1,000×10,000× Equal movement on the log scale represents multiplication by a constant factor

Examples of logarithmic measurement include pH, decibels and several scientific scales. In mathematics and computing, logarithms also turn multiplicative relationships into additive ones, which makes many problems easier to analyze.

Problem solving

How to solve logarithm equations step by step

The most useful skill is not pressing a button; it is knowing which form to turn the equation into.

Type A · direct definition

log₂(x) = 5

Rewrite the equation exponentially: 2⁵ = x.

x = 32
Type B · change of base

log₃(50)

Use ln(50) / ln(3). This is the standard way to evaluate an arbitrary base with a basic calculator.

log₃(50) ≈ 3.560877
Type C · combine logs

log₁₀(2) + log₁₀(5)

Use the product rule: log₁₀(2 × 5) = log₁₀(10).

= 1
Type D · power rule

log₅(25²)

Bring the exponent forward: 2 log₅(25) = 2 × 2.

= 4
log_b(x) = ystart in logarithmic form b^y = xrewrite exponentially solve for x or ythen check the domain The logarithm is an inverse operation: exponentiation and logarithms undo each other.
Common mistake
log(x + y) ≠ log(x) + log(y)

The product rule applies to multiplication, not addition.

Domain check
log_b(x) requires x > 0

Any algebraic solution that makes a log argument zero or negative must be rejected in the real-number setting.

Why logarithms matter

From hand calculation to modern science

Logarithms were developed as a way to make difficult multiplication, division and powers more manageable. Today they remain useful because many physical and mathematical relationships span several orders of magnitude.

1614
Napier

John Napier published influential logarithm tables.

log
Scale

Multiplicative changes become additive distances.

ln
Calculus

The natural logarithm has derivative 1/x.

dB · pH
Applications

Logarithmic scales remain common in science and engineering.

FAQ

Logarithm calculator questions

What is a logarithm?
A logarithm is the exponent needed to raise a base to an argument. If by = x, then logb(x) = y.
What is the difference between log and ln?
In common mathematical usage, log often denotes base 10, while ln denotes the natural logarithm with base e ≈ 2.718281828. Always check the convention used by the problem.
How do I calculate a logarithm with a base other than 10 or e?
Use change of base: logb(x) = ln(x) / ln(b). The same result can be obtained with common logs: logb(x) = log₁₀(x) / log₁₀(b).
Can a logarithm be negative?
Yes. A positive argument between 0 and 1 has a negative logarithm for bases greater than 1. For example, log₁₀(0.01) = −2.
Why can't I enter zero as x?
For real logarithms, x must be greater than zero. There is no real exponent y for which a valid positive base b produces by = 0.