Skip to main content

Logarithm Calculator

Enter a value and base to compute logarithms instantly. See ln, log10, log2, and custom base results side by side.

Ad (leaderboard)
log

Compute Logarithm

logb(x)

Results

logb(x)
ln(x)
log10(x)
log2(x)
Rate this tool
0.0 / 5 · 0 ratings

Embed This Calculator

Add this calculator to your website for free. Copy the single line of code below and paste it into your HTML. The calculator auto-resizes to fit your page.

<script src="https://calchammer.com/embed.js" data-calculator="logarithm-calculator" data-category="math"></script>
data-theme "light", "dark", or "auto"
data-values Pre-fill inputs, e.g. "amount=1000"
data-max-width Max width, e.g. "600px"
data-border "true" or "false"
Or use an iframe instead
<iframe src="https://calchammer.com/embed/math/logarithm-calculator" width="100%" height="500" style="border:none;border-radius:12px;" title="Logarithm Calculator"></iframe>

Preview

yoursite.com/blog
Logarithm Calculator auto-resizes here
Ad (in_results)

How to Use the Logarithm Calculator

Enter a positive number in the value field and choose your base. Type e for the natural logarithm, 10 for the common logarithm, or any positive number other than 1 for a custom base. The calculator displays the result for your chosen base alongside ln, log10, and log2 for easy comparison.

Logarithms are the inverse of exponentiation and appear throughout science, engineering, and finance. Understanding them unlocks concepts from pH scales and decibels to compound interest and algorithm complexity. This tool computes all common logarithmic forms simultaneously so you can see the relationships at a glance.

Ad (in_content)

Understanding Logarithms

If bx = y, then logb(y) = x. The base b must be positive and not equal to 1. The natural logarithm (ln) uses base e ≈ 2.71828, which arises naturally in calculus and exponential growth. The common logarithm (log10) is used in orders of magnitude, decibels, and the Richter scale.

The Change of Base Formula

You can convert between any two bases using logb(x) = ln(x) / ln(b). This is exactly how the calculator computes custom-base logarithms. For instance, log5(125) = ln(125) / ln(5) = 3, because 53 = 125.

Key Logarithm Properties

Logarithms follow three fundamental rules: log(xy) = log(x) + log(y), log(x/y) = log(x) − log(y), and log(xn) = n · log(x). These properties simplify multiplication into addition, which is why logarithms were historically used in slide rules and log tables for computation.

Applications of Logarithms

Logarithms measure earthquake intensity on the Richter scale (each whole number is a tenfold increase), sound levels in decibels, and acidity on the pH scale. In finance, they model compound interest and continuous growth. In computer science, logarithmic time complexity describes efficient algorithms like binary search. Information theory uses log2 to measure entropy in bits.

Frequently Asked Questions

What is a logarithm?

A logarithm answers the question: to what power must a given base be raised to produce a certain number? If bx = y, then logb(y) = x.

What is the difference between ln, log, and log2?

ln uses base e (~2.718), log typically means base 10, and log2 uses base 2. They are all related by the change-of-base formula.

Why can't you take the logarithm of a negative number?

In real mathematics, logarithms are only defined for positive numbers because no real exponent of a positive base can produce a negative result.

What is the change of base formula?

logb(x) = loga(x) / loga(b). This lets you convert any logarithm to a more convenient base.

Where are logarithms used in real life?

Earthquake measurement, sound levels, pH scales, radioactive decay, compound interest, information theory, and algorithm analysis all rely on logarithms.

Related Calculators

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and should not be considered professional expert advice. Consult a qualified professional before making decisions based on these calculations. See our full Disclaimer.