Logarithm Calculator

Calculate logarithms with any base including natural logarithm (ln), common logarithm (log base 10), and custom bases. Get instant results with clear explanations.

Updated June 2026 · How this works

How It Works
The formula, explained simply

A logarithm calculator determines what power you need to raise a base number to get a specific value. The logarithm is the inverse operation of exponentiation, meaning if b^y = x, then log_b(x) = y.

The most common logarithm types are the natural logarithm (ln) using base e ≈ 2.718, and the common logarithm (log) using base 10. Natural logarithms appear frequently in calculus, physics, and compound interest calculations because e represents continuous growth. Common logarithms are useful for scientific notation, pH calculations, and decibel measurements.

This logarithm calculator handles any positive base except 1, and any positive input value. For custom bases, it uses the change of base formula: log_b(x) = ln(x) / ln(b). The result tells you exactly what exponent the base needs to equal your input value.

Logarithms have unique properties that make them powerful mathematical tools. They convert multiplication into addition (log(xy) = log(x) + log(y)) and division into subtraction (log(x/y) = log(x) - log(y)). These properties made logarithms essential for calculations before electronic calculators existed.

When To Use This
Right tool, right situation

Use logarithm calculators when solving exponential equations, analyzing exponential growth or decay, or working with scientific data spanning multiple orders of magnitude. Common applications include compound interest calculations, population growth models, and radioactive decay problems.

In engineering, logarithms help with decibel calculations for sound intensity, Richter scale earthquake measurements, and pH calculations in chemistry. Binary logarithms (base 2) are essential in computer science for algorithm complexity analysis and data structure calculations.

Scientific research often requires natural logarithms when dealing with continuous processes, statistical distributions, or calculus-based models. Economics and finance use both natural and common logarithms for growth rate calculations and financial modeling.

Choose the appropriate base based on your field: natural logarithms for calculus and continuous processes, common logarithms for scientific notation and powers of 10, binary logarithms for computer science, and custom bases for specialized applications.

Common Mistakes
Why results sometimes look wrong

The most common error is attempting to find the logarithm of zero or negative numbers, which are undefined in real number mathematics. Always ensure your input value is positive.

Another frequent mistake is confusing the base with the argument. Remember that in log_b(x), b is the base and x is the value you're finding the logarithm of. Using base 1 is also invalid because 1 raised to any power always equals 1.

When working with custom bases, verify that your base is positive and not equal to 1. Bases between 0 and 1 are mathematically valid but less commonly used, while negative bases create complex number results that this calculator doesn't handle.

Precision errors can occur with very large or very small numbers due to floating-point arithmetic limitations. For critical applications requiring extreme precision, consider specialized mathematical software.

The Math
Worked examples and deeper derivation

The mathematical definition of a logarithm is: if b^y = x, then log_b(x) = y, where b is the base, x is the argument, and y is the result. The base must be positive and not equal to 1, while the argument must be positive.

Key logarithm identities include: log_b(1) = 0 for any valid base, log_b(b) = 1, and log_b(b^x) = x. The change of base formula allows conversion between different bases: log_b(x) = log_c(x) / log_c(b) for any valid base c.

Natural logarithms use the mathematical constant e ≈ 2.71828, which arises naturally in calculus as the limit of (1 + 1/n)^n as n approaches infinity. Common logarithms use base 10, making them convenient for scientific notation and orders of magnitude calculations.

Scientific calculation
Value: 2.718, Base: Natural logarithm (e)
ln(2.718) ≈ 1.000, confirming that e^1 equals approximately 2.718
Engineering problem
Value: 1000, Base: Common logarithm (10)
log₁₀(1000) = 3.000, meaning 10³ = 1000
Computer science
Value: 64, Base: Binary logarithm (2)
log₂(64) = 6.000, showing that 2⁶ = 64 bits

Common questions

How do I calculate natural logarithm ln?
Select 'Natural logarithm (ln) - base e' from the base dropdown and enter your value. The natural logarithm uses Euler's number (e ≈ 2.718) as the base and is commonly used in calculus, physics, and exponential growth calculations.
What is the difference between ln and log?
ln refers to the natural logarithm with base e (≈2.718), while log typically means the common logarithm with base 10. Both are special cases of logarithms but serve different purposes in mathematics and science applications.
How do I calculate logarithm with custom base?
Choose 'Custom base' from the dropdown menu, then enter your desired base value in the custom base field. The calculator uses the change of base formula: log_b(x) = ln(x) / ln(b) to compute logarithms with any valid base.

Need something this doesn't cover?

Suggest a tool — we'll build it →