How to Calculate Logarithm: A Step-by-Step Guide

Updated 5 Oct 2026 in Math & Geometry

Calculates logarithms in any base.

These calculations come up in school, at work and in daily life, from PSLE and O-Level practice to measuring a room for new flooring. Doing them by hand builds understanding, and a calculator lets you check the answer instantly.

What you need

Step by step

  1. Enter the number.
  2. Enter the base.
  3. The results update as you type, or press Calculate.
  4. Read the log_b(x) first, then the supporting figures below it.

The formula

log_b(x) = ln(x) ÷ ln(b).

Worked example

For example, with these inputs:

the calculator returns:

A second example

Now change the inputs to:

the calculator returns:

Practical tips

Background

A quick mental estimate before calculating is a powerful check. If a room's floor area comes out at 4,000 square metres or a percentage comes out above 100% when it should not, you know to look again.

Each formula has assumptions built in. Area formulas assume flat shapes, volume formulas assume regular solids and statistical measures assume the data you enter is the data you want to describe. Knowing the assumptions helps you pick the right tool.

These calculations appear throughout the Singapore syllabus, from primary school percentages and fractions to secondary school algebra and geometry. Understanding the formula makes problem sums easier because you can recognise which quantity is missing.

Related calculations

Want to skip the arithmetic? The free Logarithm Calculator does all of this instantly and updates as you type.

Run your own numbers: Logarithm Calculator

Related guides