Algebra & Arithmetic · Formula v1.0

Logarithm Calculator

Calculate the logarithm of a value in any base.

A logarithm answers: what power gives this base this value? At the worked-example inputs, the logarithm is 2. On the example, the base-10 logarithm of 100 is 2 because 10 squared is 100, and the check line confirms that 10 to the 2 returns 100. Logarithms turn multiplication into addition and make huge ranges manageable, which is why they are used for decibels, earthquake magnitudes, pH and compound growth. A logarithm of a number between 0 and 1 is negative, and the logarithm of 1 is always 0. Logarithms of zero and negative numbers are undefined among real numbers. It returns logarithm, base^result (check).

FreeNo sign-upInputs stay in-browserCSV exportReviewed August 28, 2026
LAST REVIEWEDAugust 28, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Logarithm2
base^result (check)100
Sensitivity check

What if value changes?

-10% input2
0% input2
+10% input2

Transparent method

The formula

log_base(value) = ln(value) ÷ ln(base)

Worked example

Logarithm2
base^result (check)100

Example inputs

Value100
Base10

How to interpret the result

A logarithm is really a question turned into an answer, what power gives this base this value, and losing sight of that makes the result look arbitrary. Log base 2 of 8 equals 3 because 2 cubed is 8, nothing more mysterious than that, and every logarithm here collapses back to the same exponent question with a different base and target.

Before you rely on it

What to check

Convert the answer back into exponent form, base raised to the result, and confirm it lands on the original value.

The common error

Where people go wrong with logarithm calculator

Confusing a change of base with a change of the underlying value. Log base 2 of 8 and log base 10 of 8 measure the identical quantity in two different unit systems, the way feet and meters measure the same distance differently.

Sensitivity evidence

How value changes the logarithm

Logarithm Calculator: logarithm and base^result (check) across a range of value, every other input held at the worked-example value.
ValueLogarithmbase^result (check)
801.980
90290
100worked example2100
1102110
1202.1120

Every input, tested

Which input moves the logarithm most

Logarithm Calculator: logarithm with each input moved on its own, every other input held at the worked-example value.
InputTested fromToLogarithm at each endSwing
Base9112.1 to 1.90.175 (8.8%)
Value901102 to 20.087 (4.4%)

Two variables at once

Logarithm by value and base

Logarithm Calculator: logarithm at each combination of value (rows) and base (columns).
Value \ Base81012
802.11.91.8
902.221.8
1002.221.9
1102.321.9
1202.32.11.9

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the logarithm calculator.
InputValue used
Value100
Base10
Logarithm2
base^result (check)100

Where the inputs come from

Enter the value you want the logarithm of, which must be positive, and the base, which must be positive and not 1. A logarithm answers the question: to what power must the base be raised to get the value? Common bases are 10, for common logarithms, and e, about 2.718, for natural logarithms. The calculator uses the change-of-base formula, the natural log of the value divided by the natural log of the base.

When the result stops applying

A base of 1 is not allowed. Rounding errors matter for values near 1, where the result is close to zero. Different textbooks use log to mean base 10 or natural log, so check the convention before comparing answers.

What to compare it with

Solve time-to-grow problems with the exponential growth calculator, and see the rule of 72 for a shortcut. The exponent and root calculators cover the inverse operations, and the scientific notation page relates to powers of ten. Continuous compounding on the investing calculators uses natural logarithms.

People also ask

Frequently asked questions

What is a logarithm?

The exponent to which a base must be raised to produce a number. The base-10 logarithm of 1,000 is 3 because 10 cubed is 1,000.

What is the difference between log and ln?

Log usually means base 10 and ln means the natural logarithm with base e, though some fields use log for natural logs.

Why can't I take the logarithm of a negative number?

No real power of a positive base gives a negative result, so the logarithm is undefined among real numbers.

Common algebra & arithmetic questions

Sources and evidence