Log Calculator

Quick Answer

A logarithm answers the question: to what power must the base be raised to produce a given number? log_b(x) = y means b^y = x. Common bases are 10 (log), e ≈ 2.71828 (natural log, ln), and 2 (binary log). Example: log_10(1000) = 3 because 10³ = 1000.

Also searched as: log, log calculator

Logarithm Calculator

Result
2
log10
2
ln (base e)
4.6052
log2
6.6439

Antilog (Inverse Log) Calculator

Antilog Result
100
Copied!

How Logarithms and Antilogs Work

A logarithm is the inverse of exponentiation, answering the question: to what power must a given base be raised to produce a specific number? If b^x = y, then log_b(y) = x. For example, log base 10 of 1000 equals 3 because 10^3 = 1000. According to the Mathematical Association of America (MAA), logarithms were invented independently by John Napier (1614) and Jost Burgi (1620) to simplify complex calculations, transforming multiplication into addition and exponentiation into multiplication.

Logarithms remain indispensable in modern science, engineering, and data analysis. The Richter scale for earthquakes, the decibel scale for sound, the pH scale for acidity, and the magnitude system for star brightness all use logarithmic scales. In finance, the natural logarithm appears in continuous compound interest formulas. In computer science, binary logarithms (base 2) describe algorithm complexity -- a binary search of 1 million items requires only log_2(1,000,000) = ~20 comparisons.

The Logarithm Formula and Change of Base

The fundamental definition: if b^x = y, then log_b(y) = x. The base b must be positive and not equal to 1, and y must be positive.

Change of base formula: log_b(x) = ln(x) / ln(b) = log(x) / log(b). This allows computing any logarithm using a calculator with only log and ln buttons.

Antilogarithm: The inverse operation. If log_b(y) = x, then antilog_b(x) = b^x = y. For base 10: antilog(3) = 10^3 = 1000.

Worked example: Find log_5(125). Using change of base: log_5(125) = ln(125) / ln(5) = 4.828 / 1.609 = 3. Verification: 5^3 = 125. For the antilog: if log_10(x) = 2.5, then x = 10^2.5 = 316.23.

Key Terms You Should Know

Logarithm Bases Comparison

Each logarithm base serves distinct applications. The table below compares the three standard bases used in science and engineering.

Property log (base 10) ln (base e) log_2 (base 2)
Notationlog(x), log_10(x)ln(x), log_e(x)lb(x), log_2(x)
log(1000)36.9089.966
Primary fieldChemistry, acousticsCalculus, physicsComputer science
Scale examplespH, dB, RichterGrowth/decay, interestBits, algorithm O()
Conversionlog(x) = ln(x) / 2.303ln(x) = log(x) × 2.303log_2(x) = log(x) / 0.301

Practical Examples

Example 1 -- pH calculation: A solution has a hydrogen ion concentration of 3.16 × 10^-5 M. pH = -log(3.16 × 10^-5) = -(-4.5) = 4.5. To find the concentration from pH: [H+] = 10^(-pH) = 10^(-4.5) = 3.16 × 10^-5 M. Use the antilog calculator for quick inverse operations.

Example 2 -- Earthquake energy: An earthquake of magnitude 7.0 vs 5.0 on the Richter scale. Energy difference = 10^(1.5 × (7-5)) = 10^3 = 1,000 times more energy released. Each whole-number increase represents 31.6x more energy (10^1.5).

Example 3 -- Algorithm complexity: Searching a sorted list of 1,000,000 items with binary search: log_2(1,000,000) = 19.93, so at most 20 comparisons are needed. Linear search would require up to 1,000,000 comparisons. This logarithmic efficiency is why databases use B-tree indexes.

Tips for Working with Logarithms

Frequently Asked Questions

Related Calculators

Antilog Calculator Logarithm Calculator Scientific Notation Exponent Calculator Compound Interest