Logarithms

The power b must be raised to in order to get x — the inverse of an exponent.

y = log_b x ⇔ bʸ = x

log₂ 1024 = 10 means “2 to the 10th power is 1024”.

With the change-of-base rule log_b x = log x ÷ log b you can use any base.

Calculator

Change a value and the result and picture update instantly.

Result

y = log_b x10

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Use a logarithm to work out how many upgrades are needed to reach a target value.

Code example (JavaScript)

const levelsNeeded = Math.log(target / start) / Math.log(1.15);

What the symbols mean

SymbolMeaning
bBase b
xArgument x
yy = log_b x

More formulas in this category

Frequently asked questions

What is the formula for Logarithms?
The formula for Logarithms is y = log_b x ⇔ bʸ = x. The power b must be raised to in order to get x — the inverse of an exponent.

Math Formula Quiz Numbers, Algebra & Functions

Sources

Checked: 2026-11-29