Logarithm Calculator
Log of any number in base 10, e, 2 or a custom base.
How it works
Change of base: log_b(x) = ln(x) / ln(b).
Worked example
Using these inputs: number 1,000 and base 10.
The result is log base 10(1,000): 3.
- ln: 6.90775528
- log₁₀: 3
Formula reviewed November 2026 · How we build calculators
Frequently asked questions
What is a logarithm?
The power you raise a base to in order to get a number. log₁₀(1000) = 3 because 10³ = 1000.
What is the difference between log and ln?
log usually means base 10; ln is the natural logarithm with base e ≈ 2.71828.
What is log base 2 used for?
Computer science and information theory. log₂(1024) = 10, which is why 1,024 bytes make a kilobyte in binary terms.
Can you take the log of a negative number?
Not with real numbers. Logarithms are defined only for positive numbers.
You might also need
Percentage Calculator
What is X% of Y, X is what percent of Y, and percent change - all in one.
CalculatePercentage Increase Calculator
Percent increase or decrease between two numbers, and the reverse: a value after a % change.
CalculateRatio & Proportion Calculator
Solve A : B = C : X - scale recipes, maps and prices.
Calculate