Find the logarithm of a positive number in base 10, base 2 or base e. Choose the base and enter your number in this logarithm calculator.
Numbers & formulas
Logarithm Calculator
Calculate a logarithm in base 10, base 2 or base e (the natural logarithm).
Logarithm
—
Enter a number, then calculate.
logb(x) = ln(x) ÷ ln(b)
A logarithm tells you the exponent needed to reach your number. For example, log₁₀(1000) = 3 because 10³ = 1000.
Answers are rounded for display; calculations use unrounded values.
For logarithm calculations on your phone, Unit Converter is free to download and includes a Logarithm Calculator.
How to use this tool
- Choose Logarithm base: 10, 2 or e.
- Enter a positive Number (x). Decimals, scientific notation and fractions are accepted.
- Click Calculate to see the logarithm.
What does a logarithm mean?
A logarithm finds a missing exponent. Exponentiation starts with a base and a power and produces a number; a logarithm starts with the base and that number, then finds the power. The two forms describe the same relationship:
logb(x) = y means by = x
Here, b is the base, x is the number being evaluated, called the argument, and y is the logarithm. The real logarithm is defined for a positive argument and a positive base other than one. Its answer can be a whole number, a fraction or an irrational number.
A logarithm calculator evaluates this exponent for a chosen base. This tool offers base 10, base 2 and base e, the three forms described below.
Common, binary and natural logarithms
The base tells you which exponential relationship is being reversed. These three bases have familiar names and notation:
- Base 10: common logarithm
- Written log10(x), it expresses a number in terms of powers of ten. It is useful when comparing orders of magnitude, where each order represents a factor of ten.
- Base 2: binary logarithm
- Written log2(x), it expresses a number in terms of powers of two. It is used in computing and communications, where doubling and halving are common relationships.
- Base e: natural logarithm
- Written ln(x), it uses the mathematical constant e, approximately 2.71828. It reverses the natural exponential function ex, which appears in continuous growth and decay models.
On scientific calculators, log usually means base 10 and ln means base e. In written mathematics, log without a base can depend on the context; the subscript removes that ambiguity.
Why a logarithm can be negative
All three bases offered here are greater than one. Raising such a base to a positive power gives a number above one, while a negative power gives a value between zero and one. This determines the sign of the logarithm:
- An argument greater than one gives a positive logarithm.
- An argument equal to one gives zero, because b0 = 1.
- An argument between zero and one gives a negative logarithm.
A negative result therefore has a clear meaning: it is the exponent needed to produce a positive fraction. Zero and negative arguments have no real logarithm, because raising a positive base to any real power always gives a positive number.
Product, quotient and power rules
Logarithms turn multiplication into addition and division into subtraction. These logarithm rules follow from the corresponding rules for exponents. For positive arguments u and v, a base b greater than zero and unequal to one, and any real exponent r:
- Product: logb(uv) = logb(u) + logb(v).
- Quotient: logb(u/v) = logb(u) − logb(v).
- Power: logb(ur) = r × logb(u).
Multiplying powers of the same base adds their exponents, which explains the product rule. The power rule brings an exponent outside the logarithm, making it useful for solving equations where the unknown is in an exponent. These rules do not split a logarithm of a sum into separate logarithms.
How logarithms in different bases relate
The change-of-base formula connects logarithms of the same positive argument:
logb(x) = ln(x) ÷ ln(b)
The same relationship works with common logarithms in both the numerator and denominator. The base must be positive and different from one. Changing the base changes the exponent needed to reach the argument; the formula gives the factor that relates those answers.
Reading logarithmic scales
On a logarithmic scale, equally spaced positions represent equal ratios. Moving the same distance along the scale multiplies the represented quantity by the same factor each time. On an ordinary linear scale, equal spacing instead adds a fixed amount.
This is useful for displaying measurements that span many orders of magnitude. It keeps the smaller values distinguishable while fitting the largest values on the same chart. The quotient rule explains the spacing: the difference between two logarithms is the logarithm of the ratio of the original values. Equal proportional changes therefore occupy equal distances on the scale.
More tools: Browse all calculators and unit converters.
Calculate logarithms on your phone
Keep the Logarithm Calculator alongside Unit Converter’s other math tools. Download it free from the App Store or Google Play.

