Logarithm Calculator

The base-10 logarithm of 100 is 2 because 10² = 100. For a base greater than one, values between zero and one have negative logarithms. A valid base between zero and one reverses that sign: log base 0.5 of 0.25 is 2.

The logarithm of one is zero for every valid base.

Logarithm Calculator: inputs

Calculated result
Logarithm2
base^result (check)100

Logarithm Calculator: Value sensitivity

Logarithm Calculator: Value and Logarithm5 calculations vary the “Value” input while holding the other entered inputs constant.801.9902100211021202.1

Logarithm: worked example

Value100
Base10
Logarithm2
base^result (check)100

Logarithm: formula

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

Logarithm: Wolfram MathWorld

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.

Logarithm: changing Value

ValueLogarithmbase^result (check)
801.980
90290
100 (example)2100
1102110
1202.1120

Logarithm: compare input ranges

InputTested fromToLogarithm: low inputLogarithm: high inputSwing
Base9112.11.90.175 (8.8%)
Value90110220.087 (4.4%)

Logarithm: individual input comparisons

InputValueLogarithmbase^result (check)
Value801.980
90290
1002100
1102110
1202.1120
Base82.2100
92.1100
102100
111.9100
121.9100

Logarithm: combined input changes

Value / Base81012
802.11.91.8
902.221.8
1002.221.9
1102.321.9
1202.32.11.9

Logarithm: which assumptions move the result?

Logarithm: Logarithm as Base changesLogarithm starts at 2.2. Moving Base from 8 to 12 changes it to 1.9, with Value 100 kept fixed.82.292.1102111.9121.9
Chart quantityDisplayed settings
Base8 → 12
Logarithm2.2 → 1.9
Value100
Logarithm: Logarithm as Value changesLogarithm starts at 1.9. Moving Value from 80 to 120 changes it to 2.1, with Base 10 kept fixed.801.9902100211021202.1
Chart quantityDisplayed settings
Value80 → 120
Logarithm1.9 → 2.1
Base10

Logarithm: values and definitions

Quantity and definitionValue used
Value100
Base10
Logarithm2
base^result (check)100

Logarithm: half and double Base

BaseLogarithm
52.9
102
201.5

Common error: 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.

Logarithms of zero and negative numbers are undefined among real numbers. 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.

Algebra & Arithmetic calculators: Rounding Calculator, Weighted Average Calculator, 2x2 Matrix Determinant Calculator, 3x3 Matrix Determinant Calculator, Scientific Calculator, Fraction Calculator.

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.

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

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.

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.