Uni-Sine
MathematicsAlgebra

Log rules (the laws of logarithms)

The log rules, also called the laws of logarithms, turn multiplication into addition and powers into multiplication. The three main ones are: log(xy) = log x + log y, log(x/y) = log x − log y and log(xᵏ) = k log x. They work for logs in any base, including natural logs, ln, so the same rules let you simplify log expressions and solve equations where the unknown is in a power.

What is a logarithm?

A logarithm answers the question: what power do I raise the base to, to get this number? Since 2⁵ = 32, the log of 32 in base 2 is 5.

\log_a x = y \iff a^y = xThe definition of a logarithm, for a > 0, a ≠ 1 and x > 0

On a calculator, log usually means base 10 and ln means base e, where e ≈ 2.718. You can only take the log of a positive number.

All the log rules in one table

RuleIn symbolsExample
Product lawlog(xy) = log x + log ylog 6 = log 2 + log 3
Quotient lawlog(x/y) = log x − log ylog 5 = log 10 − log 2
Power lawlog(xᵏ) = k log xlog 8 = 3 log 2
Log of the baselogₐ a = 1log₁₀ 10 = 1, ln e = 1
Log of 1logₐ 1 = 0ln 1 = 0
Reciprocallogₐ(1/x) = −logₐ xlog(1/4) = −log 4
Inverselogₐ(aˣ) = x and a^(logₐ x) = xln(e³) = 3, e^(ln 7) = 7
Change of baselogₐ x = log_b x ÷ log_b alog₂ 10 = ln 10 ÷ ln 2

In the first three rules, every log must have the same base. All three come straight from the exponent rules, because a logarithm is an exponent: multiplying powers means adding exponents, so multiplying numbers means adding their logs. The exponent rules guide shows the matching rule for each one.

Why the product law works

Let logₐ x = m and logₐ y = n, so x = aᵐ and y = aⁿ. Then:

xy = a^m \times a^n = a^{m+n}

Taking logs base a of both sides gives logₐ(xy) = m + n = logₐ x + logₐ y. The quotient law follows in the same way from aᵐ ÷ aⁿ = aᵐ⁻ⁿ, and the power law from (aᵐ)ᵏ = aᵐᵏ.

Ln rules (natural log rules)

ln x is the logarithm in base e. It follows exactly the same rules, plus two you use all the time:

\ln(e^x) = x \qquad e^{\ln x} = x
Ruleln version
Productln(xy) = ln x + ln y
Quotientln(x/y) = ln x − ln y
Powerln(xᵏ) = k ln x
Special valuesln e = 1 and ln 1 = 0
Inverseln and eˣ undo each other

The graph of y = ln x shows those special values. Here x is the input and y is ln x.

y = \ln\left( x\right)
12345678910-4-3-2-1123ln 1 = 0ln e = 1ln e² = 2
Drag to pan, scroll to zoom. x from 0 to 10, y from -4.27 to 3.4.

The curve crosses the x-axis at x = 1, because ln 1 = 0, and reaches 1 at x = e. It only exists for x > 0, which is why you cannot take the log of zero or a negative number. Each time x is multiplied by e, y goes up by 1: that is the product law in picture form.

Log rules examples

Example 1: write as a single logarithm

Write 2 log 3 + log 4 − log 6 as a single logarithm.

Use the power law first, then the product and quotient laws:

2\log 3 + \log 4 - \log 6 = \log 9 + \log 4 - \log 6 = \log\frac{9 \times 4}{6} = \log 6

Example 2: expand a logarithm

Write log(x³y ÷ z²) in terms of log x, log y and log z.

\log\frac{x^3y}{z^2} = \log x^3 + \log y - \log z^2 = 3\log x + \log y - 2\log z

Example 3: evaluate without a calculator

Find log₂ 32, log₃(1/9) and log₈ 4.

  • log₂ 32 = 5, because 2⁵ = 32.
  • log₃(1/9) = −2, because 3⁻² = 1/9.
  • log₈ 4: write both as powers of 2. 8 = 2³ and 4 = 2², so 8^(2/3) = 4 and log₈ 4 = 2/3.

Example 4: solve an equation with the unknown in the power

Solve 5ˣ = 40, giving x to 3 significant figures.

Take logs of both sides, then use the power law to bring x down:

\ln 5^x = \ln 40 \implies x\ln 5 = \ln 40
x = \frac{\ln 40}{\ln 5} = 2.29

Check: 5² = 25 and 5³ = 125, so an answer between 2 and 3 makes sense.

Example 5: solve an equation with e

Solve e²ˣ = 7.

Take ln of both sides: 2x = ln 7, so x = ½ ln 7 = 0.973 to 3 significant figures.

Example 6: combine logs, then solve

Solve log₂(x + 3) + log₂(x − 3) = 4.

Combine with the product law, then undo the log:

\log_2\left[(x + 3)(x - 3)\right] = 4 \implies x^2 - 9 = 2^4 = 16

So x² = 25 and x = ±5. But log₂(x − 3) needs x − 3 > 0, so x = −5 is not allowed. The only solution is x = 5.

Example 7: ln on both sides

Solve ln(x + 1) + ln(x − 1) = ln 8.

The left side is ln[(x + 1)(x − 1)] = ln(x² − 1). If ln(x² − 1) = ln 8, then x² − 1 = 8, so x = ±3. Only x = 3 keeps both logs defined, so x = 3.

Here is a quick check before the mistakes.

practice
Pick an answer, then check it.
Which of these is equal to log 12?

Common mistakes

  • Splitting a sum. log(x + y) is not log x + log y. The product law is about log(xy).
  • Multiplying logs. log x × log y is not log(xy). There is no rule for multiplying two logs.
  • Dividing logs. log x ÷ log y is not log(x/y). log x ÷ log y is a change of base: it equals log_y x.
  • Squaring the log instead of the number. (log x)² is not 2 log x. The power law needs the power inside: log(x²) = 2 log x.
  • Keeping invalid solutions. Check every answer in the original equation. The log of zero or a negative number is undefined.
  • Mixing bases. The product, quotient and power laws only combine logs with the same base.

Logs in science

Logarithmic scales compress huge ranges of numbers. In chemistry, pH = −log₁₀[H⁺], so each step of 1 on the pH scale is a factor of 10 in hydrogen ion concentration. The decibel scale for sound and the Richter scale for earthquakes work the same way. In A-level Maths and Physics, plotting log y against log x, or ln y against x, turns a power or exponential relationship into a straight line, which lets you find the constants from the gradient and intercept.

Using log rules to get a straight line (A-level)

If two quantities are linked by y = axⁿ, taking logs of both sides and using the product and power laws gives:

\log y = n\log x + \log a

That has the form Y = mX + c, with Y = log y and X = log x. So a graph of log y against log x is a straight line with gradient n and y-intercept log a. For example, if the line has gradient 1.5 and crosses the vertical axis at 0.3, then n = 1.5 and a = 10^0.3 = 2.0, so y = 2.0x^1.5.

For an exponential model, y = abˣ, the same steps give log y = x log b + log a. Plot log y against x itself: the gradient is log b and the intercept is log a.

Are the log rules in the formula booklet?

Not the main laws. This was checked against the A-level Maths booklets in November 2026. Edexcel's booklet, under logarithms and exponentials, gives the change of base formula, logₐ x = log_b x ÷ log_b a, and e^(x ln a) = aˣ. The product, quotient and power laws are not printed. AQA's booklet does not include a logarithms section at all. So learn the laws of logs by heart for A-level Maths. The Logarithm Calculator evaluates logs in any base and shows the rules at work, so you can check your answers.

Log rules questions with answers

1. Write log 5 + log 8 − log 4 as a single logarithm.
log(5 × 8 ÷ 4) = log 10, which is 1 in base 10
2. Write ln(x²√y) in terms of ln x and ln y.
ln x² + ln y^(1/2) = 2 ln x + ½ ln y
3. Evaluate log₂₅ 5.
25^(1/2) = 5, so log₂₅ 5 = ½
4. Solve 2ˣ = 50, to 3 significant figures.
x ln 2 = ln 50, so x = ln 50 ÷ ln 2 = 5.64
5. Solve ln x = 3 − ln 2, giving an exact answer.
ln x + ln 2 = 3, so ln(2x) = 3 and 2x = e³.
x = e³ ÷ 2, about 10.0
6. Show that 4 log 2 + 2 log 5 = log 400.
4 log 2 = log 16 and 2 log 5 = log 25.
log 16 + log 25 = log(16 × 25) = log 400

Practise logs in a short timed paper

A-level Maths: Algebra and Functions gives you a short timed paper every day, with 8 questions worth 25 to 35 marks, and exponentials and logarithms come up regularly. In the US, the same practice opens as AP Precalculus. The Graphing Functions course covers exponential growth and decay curves, the graphs that logarithms undo.

Paper resets in

Common questions

What are the log rules?
log(xy) = log x + log y, log(x/y) = log x − log y and log(xᵏ) = k log x, plus logₐ a = 1, logₐ 1 = 0 and the change of base formula. They hold in any base.
Do the log rules work for ln?
Yes. ln is just the log in base e, so ln(xy) = ln x + ln y and so on. You also use ln e = 1 and e^(ln x) = x.
What is the change of base formula?
logₐ x = log_b x ÷ log_b a. It lets you work out a log in any base using the log or ln button: log₃ 20 = ln 20 ÷ ln 3.
Why can't you take the log of a negative number?
A positive base raised to any real power always gives a positive answer, so no real power can produce a negative number or zero.
How are log rules related to exponent rules?
Each log rule is an exponent rule written backwards. Adding exponents when you multiply powers becomes adding logs when you multiply numbers.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Logarithm Calculator

    Evaluate logs in any base and see the log rules at work

    Open the tool
  • Learn it

    Graphing Functions

    Graphing made easier: the patterns in numbers and functions used across STEM

    Start the course
  • Test it

    A-level Maths: Algebra & Functions

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · AlgebraWhat is a logarithm? Logs explained with examplesWhat a logarithm is, how to read and work out logs, log base 10 and natural logs, the log rules and why they work, solving equations and real uses.