Logarithm Calculator
Free online Logarithm Calculator -- compute common log (base 10), natural log (ln), and logarithms of any base. Includes log rules, formulas, and real-world applications.
Loading calculator
Preparing Logarithm Calculator...
Reviewed & Methodology
Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.
How to Use the Logarithm Calculator
- 1. Enter the number - type the value you want to find the logarithm of (must be positive).
- 2. Select the base - choose common log (base 10), natural log (base e), or enter a custom base.
- 3. View the result - the logarithm value is displayed instantly with high precision.
- 4. Try the inverse - use the antilog function to reverse the calculation (base raised to the power of your result).
- 5. Explore different bases - switch between log bases to compare results for the same input.
Logarithm Calculator
Calculate logarithms for any positive number using common log (base 10), natural log (base e), or any custom base you enter. This tool instantly computes the exponent to which the base must be raised to produce your input value. Logarithms appear throughout mathematics, science, engineering, and finance whenever calculations involve exponential growth, very large numbers, or data that spans many orders of magnitude.
How Logarithms Are Calculated
The logarithm base b of a positive number x is the exponent y such that b^y = x, written as log_b(x) = y.
Key cases:
- log10(1000) = 3 because 10^3 = 1000
- ln(e) = 1 because e^1 = e (where e ≈ 2.71828)
- log2(64) = 6 because 2^6 = 64
- log_b(1) = 0 for any base, because b^0 = 1
The change of base formula converts any logarithm to common or natural log: log_b(x) = log10(x) / log10(b). This is how calculators handle non-standard bases internally.
Worked Examples
Example 1 — doubling time: A savings account earns 5% continuous interest. How many years to double? t = ln(2) / 0.05 = 0.6931 / 0.05 = 13.86 years.
Example 2 — earthquake magnitude: The Richter scale uses base-10 logarithms. An earthquake measuring 6.0 releases 10^(1.5 x 6.0) = 10^9 units of energy. A magnitude-7.0 earthquake releases 10^10.5 units — about 31.6 times more than a 6.0.
Example 3 — bits of information: A system can represent 1,024 distinct values. The number of bits required = log2(1024) = 10. Verify: 2^10 = 1024. So 10-bit encoding handles 1,024 possible states.
Reference Table — Logarithm Values Across Common Bases
| Number (x) | log10(x) | ln(x) | log2(x) |
|---|---|---|---|
| 1 | 0.000 | 0.000 | 0.000 |
| 2 | 0.301 | 0.693 | 1.000 |
| 5 | 0.699 | 1.609 | 2.322 |
| 10 | 1.000 | 2.303 | 3.322 |
| 50 | 1.699 | 3.912 | 5.644 |
| 100 | 2.000 | 4.605 | 6.644 |
| 500 | 2.699 | 6.215 | 8.966 |
| 1,000 | 3.000 | 6.908 | 9.966 |
| 10,000 | 4.000 | 9.210 | 13.288 |
| 1,000,000 | 6.000 | 13.816 | 19.932 |
When to Use This Calculator
- When solving exponential equations where the variable is in the exponent, such as 3^x = 243 (x = log3(243) = 5)
- When calculating doubling time or half-life using the formula t = ln(2) / r
- When converting between logarithmic scales — decibels, pH, Richter magnitudes — and underlying linear values
- When analyzing data that spans multiple orders of magnitude and needs a log scale to be readable
- When working with information theory, binary encoding, or computer science problems that require log base 2
Common Mistakes
- Attempting log of zero or a negative number — log(0) is undefined (approaches negative infinity as x approaches 0), and logarithms of negative numbers require complex arithmetic. This calculator only accepts positive inputs.
- Mixing up common log and natural log — log10(100) = 2, but ln(100) ≈ 4.605. These are different functions. In most scientific contexts, “log” without a subscript means log10; in mathematics and many physics equations, “log” often means ln.
- Misapplying the product rule — log(A + B) does not equal log(A) + log(B). Only multiplication under the log splits: log(A x B) = log(A) + log(B). Adding values before taking the log gives a completely different result than adding their logs.
- Forgetting that the base must be positive and not equal to 1 — log base 1 is undefined because 1^y = 1 for any y, making it impossible to uniquely solve for an exponent.
Real-World Applications
Logarithms are built into the measurement scales of everyday life. The decibel scale for sound intensity is logarithmic — a 30 dB difference represents a 1,000-fold change in sound power, not a 30-fold change. The pH scale for acidity uses -log10 of the hydrogen ion concentration: a pH of 3 (vinegar) is 10 times more acidic than a pH of 4. The Richter scale for earthquakes works similarly, so a 7.0 earthquake releases about 31.6 times the energy of a 6.0. In finance, the continuous compounding formula A = P x e^(rt) is solved for time using natural log: t = ln(A/P) / r. In information theory, Shannon entropy — a measure of how much information is in a message — is computed using log base 2, where each bit of information corresponds to a factor of 2 in possible states.
Tips
- The Rule of 72 offers a quick mental estimate for doubling time: divide 72 by the annual growth rate (72 / 6% = 12 years)
- When graphing exponential data, applying a log scale to the y-axis converts the curve into a straight line, making trends far easier to identify
- log(A x B) = log(A) + log(B) — this is how analog slide rules performed multiplication before electronic calculators existed
- In computer science, log2 tells you how many bits are needed: log2(65,536) = 16, so 65,536 values require 16-bit storage
- Negative logarithms just mean the input is between 0 and 1: log10(0.001) = -3 because 10^(-3) = 0.001
- The natural log and base-10 log are proportional: ln(x) = log10(x) x 2.302585, so you can convert between them with a fixed multiplier
Frequently Asked Questions
What is a logarithm and how does it work?
What is the difference between common log and natural log?
What are the main logarithm rules and properties?
Where are logarithms used in real life?
What is the relationship between logarithms and exponents?
Explore More Math & Science Tools
Related Math & Science Calculators
Age Calculator
Free online Age Calculator -- find your exact age in years, months, days, weeks, and total days from your date of birth. Includes next birthday countdown and milestone tracking.
Math & ScienceBasic Calculator
Free online Basic Calculator -- perform addition, subtraction, multiplication, division, exponents, and modulo operations. Instant results with up to 10 decimal places of precision.
Math & ScienceBinary Hex Decimal Converter
Free online Binary, Hexadecimal, and Decimal Converter -- convert between base-2, base-10, and base-16 number systems instantly. Essential for programming, computer science, and digital electronics.
Math & ScienceDate Calculator
Free online Date Calculator -- find the exact number of days, weeks, months, and years between any two dates. Calculate date differences for project planning, contracts, age verification, and event countdowns.