Home » Math Theory » Algebra » Logarithms

Logarithms

Quick answer

A logarithm answers the question “what power do I raise the base to, to get this number?” If bx = n, then logb(n) = x. For example, 34 = 81, so log3(81) = 4. The three main rules are: logb(mn) = logb(m) + logb(n); logb(m/n) = logb(m) − logb(n); logb(mp) = p logb(m).

Reviewed by the Helping with Math Team · Updated 14 October 2026

What is a logarithm?

A logarithm (log) is another way of writing an exponent. The logarithm of n to the base b is the power x that b must be raised to, to give n. Logarithms undo exponents, just as subtraction undoes addition.

In symbols: if bx = n, then logb(n) = x. The first is the exponential form and the second is the logarithmic form. b is the base, x is the exponent and n is called the argument.

Exponential form b to the x equals n beside logarithmic form log base b of n equals x, with base, exponent and argument labeledExponential formbx= nbaseexponentargumentsame factLogarithmic formlogbn= xbaseargumentexponent3⁴ = 81 means log₃(81) = 4
The same fact in two forms. The base stays the base; the exponent becomes the answer to the log.

Example: 34 = 81 has base 3, exponent 4 and argument 81. As an exponential statement written as a log, it is log3(81) = 4.

More pairs: 25 = 32 means log2(32) = 5; 103 = 1,000 means log10(1000) = 3; 5−2 = 1/25 means log5(1/25) = −2.

When switching between the two forms, the base of the log is always the base of the power.

History of logarithms

In 1614 the Scottish mathematician John Napier published Mirifici Logarithmorum Canonis Descriptio (Description of the Wonderful Rule of Logarithms), which introduced logarithms. In 1620 the Swiss clockmaker Jost Bürgi published his own tables, worked out independently. Both wanted to make long multiplications quicker.

Napier defined logarithms using distances and motion rather than exponents. Linking logarithms to exponents came later, in the work of mathematicians such as John Wallis (1685) and Johann Bernoulli (1694), and it was made standard by Leonhard Euler in the 1700s.

How to evaluate logarithms

To evaluate logb(n) = x:

  1. Rewrite it in exponential form: bx = n.
  2. Find the power x that turns b into n.

Example 1

evaluate log3(243). Write 3x = 243. Since 35 = 243, x = 5.

Example 2

evaluate log6(1). Write 6x = 1. Any nonzero number to the power 0 is 1, so x = 0.

Example 3

evaluate log4(1/16). Write 4x = 1/16. Since 16 = 42, 1/16 = 4−2, so x = −2.

Try any base and number in the logarithm calculator below.

8
Logarithm calculator with graph

log2(8) = 3. Check: 23 = 8.

Try it: pick a base and a number. The calculator finds the log, checks it as a power and marks the point on the graph of y = log(x).

Restrictions on logarithms

logb(n) is only defined when:

  • the base b is positive and not equal to 1, and
  • the argument n is positive.

This is because a positive base raised to any power is always positive, so no power can give 0 or a negative number. A base of 1 gives 1 every time, so it cannot reach other numbers.

Why logarithms matter

Logarithms are used to solve exponential equations, such as how long money takes to double. They also make huge ranges of numbers easier to handle. Examples include:

  • Sound loudness in decibels.
  • Earthquake size on the Richter and moment magnitude scales.
  • The brightness of stars.
  • pH, the measure of acidity.

Properties of logarithms

There are three basic rules: the product rule, the quotient rule and the power rule. In each, m and n are positive and the base b is positive and not 1.

The product rule

logb(mn) = logb(m) + logb(n). The log of a product is the sum of the logs.

Check with b = 3, m = 9 and n = 27: 9 × 27 = 243, and log3(243) = 5, while log3(9) + log3(27) = 2 + 3 = 5.

Example 1

check it for m = 4, n = 16, b = 2: log2(64) = 6 and log2(4) + log2(16) = 2 + 4 = 6.

Example 2

expand log7(4y) = log7(4) + log7(y).

Example 3

simplify log5(8) + log5(y) = log5(8y).

The bases must match. log7(21) + log8(3) cannot be combined with the product rule.

The quotient rule

The quotient rule: logb(m/n) = logb(m) − logb(n). The log of a quotient is the difference of the logs.

Check with b = 6, m = 216 and n = 36: 216/36 = 6, and log6(6) = 1, while log6(216) − log6(36) = 3 − 2 = 1.

Example 1

check it for m = 64, n = 8, b = 2: log2(8) = 3 and log2(64) − log2(8) = 6 − 3 = 3.

Example 2

expand log9(81/y) = log9(81) − log9(y) = 2 − log9(y).

Example 3

simplify log7(y) − log7(3) = log7(y/3). Again, the bases must match.

The power rule

The power rule: logb(mp) = p × logb(m). The log of a power is the exponent times the log.

Check with b = 5, m = 5 and p = 2: log5(25) = 2, and 2 × log5(5) = 2 × 1 = 2.

Example 1

check it for b = 2, m = 4, p = 3: log2(43) = log2(64) = 6, and 3 × log2(4) = 3 × 2 = 6.

Example 2

expand log8(y4) = 4 log8(y).

Example 3

simplify 3 log8(4) = log8(43) = log8(64) = 2, because 82 = 64.

Expanding logarithmic expressions

To expand an expression that needs several rules, work from the outside in: quotient rule first, then product rule, then power rule.

Expand log3(4y2/9):

  1. Quotient rule: log3(4y2) − log3(9)
  2. Product rule: log3(4) + log3(y2) − log3(9)
  3. Power rule: log3(4) + 2 log3(y) − log3(9)
  4. Since log3(9) = 2: log3(4) + 2 log3(y) − 2

Example: expand logx(y3/(2z)).

  1. Quotient rule: logx(y3) − logx(2z)
  2. Power rule: 3 logx(y) − logx(2z)
  3. Product rule on the second log: 3 logx(y) − [logx(2) + logx(z)]

The brackets matter: the whole of 2z is in the denominator, so both logs are subtracted. The answer is 3 logx(y) − logx(2) − logx(z).

Simplifying logarithmic expressions

To combine logs into one, first check that all the bases match. Use the power rule to move any number in front up into an exponent. Then a + between logs means multiply the arguments (product rule) and a − means divide (quotient rule).

Simplify 4 log5(y) − 3 log5(8): power rule gives log5(y4) − log5(83), and the quotient rule gives log5(y4/512).

Example: simplify 5 log9(x) + 4 log9(y). Both are base 9. Power rule: log9(x5) + log9(y4). Product rule: log9(x5y4).

Special logarithms

Any positive number other than 1 can be a base, but two bases are used so often that they have special names.

Common logarithm

A log with base 10 is a common logarithm. The base is usually left out, so log10(n) is written log(n). For example, log(1,000) = 3. Scientific calculators have a LOG key for it.

Natural logarithm

A log with base e (Euler’s number, about 2.718) is a natural logarithm. loge(n) is written ln(n). For example, ln(e2) = 2. Calculators have an LN key.

All the log rules work for common and natural logarithms too.

Logarithmic identities

These identities follow from the definition and the three rules (b positive, not 1):

  • logb(1) = 0, because b0 = 1
  • logb(b) = 1, because b1 = b
  • logb(bx) = x
  • blogb(x) = x, for x positive
  • logb(1/n) = −logb(n)

The change of base formula

The change of base formula rewrites a log in a base your calculator has, such as 10 or e:

logb(a) = logc(a) ÷ logc(b)

Here a is the argument, b is the original base and c is any new base (positive, not 1). Base 10 is the easiest choice on a calculator.

Example 1

find log16(4). log16(4) = log(4) ÷ log(16) = log(4) ÷ log(42) = log(4) ÷ (2 log(4)) = 1/2. Check: 161/2 = 4.

Example 2

estimate log7(21). 21 is not a whole number power of 7, so use a calculator: log(21) ÷ log(7) ≈ 1.3222 ÷ 0.8451 ≈ 1.565. Check: 71.565 ≈ 21.

More practice: understanding exponents worksheets, radicals and integer exponents worksheets, multiplication of functions worksheets and all worksheets.

Logarithms FAQs

What is a logarithm in simple terms?

The power you raise a base to, to get a number. log base 2 of 8 is 3, because 2³ = 8.

What is log base 10 of 1000?

3, because 10³ = 1,000.

Why can you not take the log of a negative number?

A positive base raised to any power is always positive, so no power gives a negative number or zero.

What is the difference between log and ln?

log usually means base 10 and ln means base e, about 2.718.

What are the three laws of logarithms?

Product: log(mn) = log m + log n. Quotient: log(m/n) = log m − log n. Power: log(mᵖ) = p log m.

Who invented logarithms?

John Napier published them in 1614. Jost Bürgi worked them out independently around the same time.

Practice with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Logarithms". Helping with Math. Accessed on November 10, 2026. https://helpingwithmath.com/logarithms/.

  • "Logarithms". Helping with Math, https://helpingwithmath.com/logarithms/. Accessed 10 November, 2026.

  • Logarithms. Helping with Math. Retrieved from https://helpingwithmath.com/logarithms/.