Math
Log Calculator
Calculate the logarithm of a number to any base instantly.
logbase(x)
3.00
Logarithm answers: "What power do I raise the base to in order to get the value?" For example, log₁₀(100) = 2 because 10² = 100.
Math
Calculate the logarithm of a number to any base instantly.
logbase(x)
3.00
Logarithm answers: "What power do I raise the base to in order to get the value?" For example, log₁₀(100) = 2 because 10² = 100.
A logarithm answers the question: 'What power must I raise the base to in order to get the value?' For example, log₁₀(100) = 2 because 10² = 100. Logarithms reverse exponentiation and are essential in mathematics, science, engineering, and data analysis.
Enter a base (2, 10, e, or any positive number except 1) and a value greater than zero. The calculator uses the change-of-base formula: log_base(x) = ln(x) / ln(base). It instantly displays the result and also shows ln(x), log₁₀(x), and log₂(x) for reference.
log_base(x) = ln(x) / ln(base) or log_base(x) = log₁₀(x) / log₁₀(base)The change-of-base formula lets you compute any logarithm using natural logarithms or base-10 logarithms. Simply divide the logarithm of the value by the logarithm of the base, both in the same system.
| Input | Result | Notes |
|---|---|---|
| Base 10, Value 100 | 2 | log₁₀(100) = 2 because 10² = 100 |
| Base 2, Value 32 | 5 | log₂(32) = 5 because 2⁵ = 32 |
| Base e, Value 7.389 | 2 | ln(7.389) ≈ 2 because e² ≈ 7.389 |
Log usually means log₁₀ (base 10), while ln is the natural logarithm (base e ≈ 2.718). Both answer 'what power' but to different bases. In computer science and math, ln is more fundamental.
Because 1 to any power is always 1. So log₁(x) would be undefined or infinite for most x. Bases must be positive and not equal to 1.
Logarithms of zero and negative numbers are undefined in real mathematics. You cannot raise a positive base to any real power and get a negative number or zero.
It lets you convert any logarithm: log_a(x) = log_b(x) / log_b(a). Use this to compute logs with bases not on your calculator.
Logs model exponential growth (populations, investments), measure sound (decibels), acidity (pH), earthquakes (Richter), and data compression. Any 'doubling time' or 'half-life' problem involves logs.
Yes. This is a client-side tool—all calculations happen in your browser. Your numbers are never sent to a server.