Skip to content

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.

Logarithm Calculator: Example Calculation

Using Number: 100, Base: 10, Custom Base: 5:

The estimated log base 10 is 2.

Result Value
log base 10 2
Natural Log (ln) 5
Log Base 10 2
Log Base 2 7

Adjust the values in the calculator above for your own scenario.

Loading calculator

Preparing Logarithm Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed for accuracy against our published methodology. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the Logarithm Calculator

  1. 1. Enter the number - type the value you want to find the logarithm of (must be positive).
  2. 2. Select the base - choose common log (base 10), natural log (base e), or enter a custom base.
  3. 3. View the result - the logarithm value is displayed instantly with high precision.
  4. 4. Try the inverse - use the antilog function to reverse the calculation (base raised to the power of your result).
  5. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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?
A logarithm answers the question: 'To what power must I raise the base to get this number?' Written as log_b(x) = y, it means b^y = x. For example, log_10(1000) = 3 because 10^3 = 1000, and log_2(8) = 3 because 2^3 = 8. Logarithms are the inverse of exponentiation, just as subtraction is the inverse of addition. They convert multiplication into addition, which made them invaluable for computation before calculators existed.
What is the difference between common log and natural log?
Common log (log or log10) uses base 10 and is used in decibel measurements, pH chemistry, earthquake magnitudes (Richter scale), and any context where powers of 10 are relevant. Natural log (ln) uses the mathematical constant e (approximately 2.71828) as its base and appears naturally in calculus, continuous growth/decay formulas, and physics equations. The change-of-base formula connects them: ln(x) = log10(x) / log10(e), or approximately log10(x) x 2.303.
What are the main logarithm rules and properties?
The three fundamental log rules are: Product Rule: log(A x B) = log(A) + log(B); Quotient Rule: log(A / B) = log(A) - log(B); Power Rule: log(A^n) = n x log(A). Additional properties include: log_b(1) = 0 for any base (because b^0 = 1), log_b(b) = 1 (because b^1 = b), and the change of base formula: log_b(x) = log_c(x) / log_c(b). These rules are essential for simplifying and solving logarithmic equations.
Where are logarithms used in real life?
Logarithms appear in many fields: the Richter scale measures earthquake magnitude logarithmically (each whole number is 10x more ground motion), the decibel scale measures sound intensity (every 10 dB is perceived as roughly twice as loud), pH measures acidity (pH = -log[H+]), and the entropy formula in information theory uses log base 2 to measure bits of information. In finance, logarithms calculate the time to double an investment: t = ln(2) / r, where r is the continuous rate.
What is the relationship between logarithms and exponents?
Logarithms and exponents are inverse operations: if b^y = x, then log_b(x) = y. This means the log function 'undoes' the exponential function and vice versa. Applying a logarithm to an exponential gives back the exponent: log_b(b^y) = y. Applying an exponential to a logarithm gives back the number: b^(log_b(x)) = x. This inverse relationship is why logarithms are used to solve equations where the variable is in the exponent, such as 2^x = 64 (solution: x = log_2(64) = 6).
Embed this calculator

Add this free calculator to your website. Copy the code below and keep the attribution link - it's what keeps these tools free:

Cite this calculator

Copy this citation for papers, articles, or coursework:

Alex Crabinsky. "Logarithm Calculator." Numeraty, February 24, 2026, https://numeraty.com/logarithm-calculator/

Related Math & Science Calculators

Math & Science

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 & Science

Basic 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 & Science

Binary 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 & Science

Date 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.

Math & Science

Fraction Calculator

Free online Fraction Calculator -- add, subtract, multiply, and divide fractions with automatic simplification. Shows results as fractions and decimals. Supports mixed numbers and improper fractions.

Math & Science

Fuel Consumption Converter

Free Fuel Consumption Converter -- convert between MPG (US), MPG (UK), L/100km, and km/L. Compare fuel economy ratings across US, UK, and metric systems for any vehicle.

Math & Science

GPA Calculator

Free online GPA Calculator -- compute your grade point average from letter grades and credit hours. Supports weighted and unweighted GPA on a 4.0 scale with instant results.

Math & Science

Grade Calculator

Free online Grade Calculator -- compute your weighted course grade from assignments, exams, and projects. Find out what score you need on your final exam to reach your target grade.

Math & Science

Matrix Calculator

Free online Matrix Calculator -- perform matrix addition, subtraction, multiplication, transposition, and find determinants and inverses. Supports 2x2 and 3x3 matrices with step-by-step results.

Math & Science

Mean Median Mode Calculator

Free online Mean, Median, and Mode Calculator -- enter a data set to instantly compute all three measures of central tendency plus range and count. Includes explanations of when to use each measure.

Math & Science

Percentage Calculator

Free online Percentage Calculator -- find a percentage of a number, calculate percentage increase or decrease, compute percentage change, and determine percentage difference. Instant results with formulas and examples.

Math & Science

Probability Calculator

Free online Probability Calculator -- compute single event probability, combined probability for independent and dependent events, and complementary probability. Includes formulas and practical examples.

Calculators