Premium Converters
Loading
Loading
Loading
Calculate logarithms in any base, including common (log10), natural (ln), and binary (log2).
Math
Generated on May 23, 2026
Calculate logarithms in any base, including common (log10), natural (ln), and binary (log2).
A logarithm calculator computes logarithms in any base, including the common logarithm (base 10), the natural logarithm (base e ≈ 2.
Formula
log_b(x) = ln(x) ÷ ln(b). Common: log(1000) = 3 because 10^3 = 1000. Natural: ln(e^5) = 5.When a 6.0 earthquake hits versus a 7.0, most people think 'a bit stronger.' Reality: the 7.0 produces 10 times the ground motion and releases roughly 32 times the energy. That's the logarithmic scale at work — every Richter unit is a 10x jump because the scale is base-10 log. Same idea for decibels (every +10 dB is 10x more sound intensity), pH (every −1 unit is 10x more acidic), and stellar magnitudes (each magnitude is roughly 2.5x dimmer). Logs are how scientists compress huge dynamic ranges into manageable numbers that also match how human senses actually perceive intensity. This calculator handles log in any base — common (base 10) for engineering, natural (ln, base e) for calculus and probability, binary (log2) for computer science. The change-of-base formula log_b(x) = ln(x)/ln(b) means you only need natural log internally to compute any base. Worth knowing for CS students: log2(n) is how many bits you need to represent n distinct values, and it's the time complexity of binary search through a sorted list. log2(1,000,000) is about 20, meaning you can find any item in a million-item list with just 20 comparisons. This is why algorithmic complexity is so often described in log terms — log-time algorithms are the fast ones.
A logarithm calculator computes logarithms in any base, including the common logarithm (base 10), the natural logarithm (base e ≈ 2.71828), and the binary logarithm (base 2). Logarithms are the inverse of exponentiation — they answer the question 'to what power must the base be raised to get this number?'. They appear throughout mathematics, science, engineering, and computer science: earthquake magnitudes (Richter scale), sound intensity (decibels), acidity (pH), algorithm complexity (log n time), and any problem involving exponential growth or decay.
A logarithm log_b(x) is the number y such that b^y = x. The change-of-base formula log_b(x) = ln(x) / ln(b) lets you compute a logarithm in any base from natural logarithms — useful because ln is a standard built-in function in virtually every calculator and programming language. Each one-unit increase on a logarithmic scale corresponds to one multiplication by the base, which is why logarithmic scales compress huge ranges into manageable numbers (the Richter scale goes from 1 to 10, but a magnitude-10 earthquake is a billion times more powerful than a magnitude-1 tremor).
Common logarithms of frequently-used numbers in the three most-used bases: 10 (common), e (natural), and 2 (binary).
| x | log₁₀(x) | ln(x) (natural) | log₂(x) (binary) |
|---|---|---|---|
| 1 | 0 | 0 | 0 |
| 2 | 0.3010 | 0.6931 | 1 |
| e (2.718) | 0.4343 | 1 | 1.4427 |
| 10 | 1 | 2.3026 | 3.3219 |
| 100 | 2 | 4.6052 | 6.6439 |
| 1,000 | 3 | 6.9078 | 9.9658 |
| 1,024 | 3.0103 | 6.9315 | 10 |
| 1,000,000 | 6 | 13.8155 | 19.9316 |
| 1 billion (10⁹) | 9 | 20.7233 | 29.8974 |
log₁₀(x) ≈ number of digits in x minus 1 — a fast mental check (e.g., log₁₀(500) ≈ 2.7; 500 has 3 digits).
Earthquake magnitudes: each +1 on the Richter scale = 10× ground motion, ~32× energy release.
Decibels (sound): +10 dB = 10× sound intensity, but perceived as only 2× as loud to the human ear.
pH scale: pH 4 is 1,000× more acidic than pH 7 (difference of 3 on log₁₀ scale).
Binary search complexity: finding an item in 1 million sorted items takes only log₂(1,000,000) ≈ 20 comparisons.
log10(1000) = 3 because 10^3 = 1000 — the common logarithm tells you roughly how many digits a number has.
ln(e) = 1 because e^1 = e — the natural logarithm's simplest identity.
log2(1024) = 10 because 2^10 = 1024 — used constantly in computer science for memory sizes and algorithm complexity.
log5(125) = 3 because 5^3 = 125 — a custom-base example.
pH 7 means log10([H+]) = −7, i.e., [H+] = 10^(−7) moles/liter — the defining property of pure water.
A Richter 7.0 earthquake has 10 times the ground motion of a 6.0 and releases about 32 times the energy — the logarithmic scale in action.
Jump to a ready-made conversion — useful for quick reference and sharing:
GPA Calculator
Calculate your semester or cumulative Grade Point Average on the 4.0 scale, weighted by credit hours, with support for both weighted and unweighted grading systems.
Grade Calculator
Calculate your final grade from weighted categories like tests, homework, and exams.
Student Result Card Calculator
Subject-wise marks, grades, and a printable school result card — ideal for small schools and parents.
Fraction Calculator
Add, subtract, multiply, and divide proper, improper, and mixed fractions with automatic reduction to lowest terms and decimal equivalents for cooking, carpentry, and homework.
Ratio Calculator
Simplify ratios to lowest terms using GCD and solve proportions like a:b = c:x for any missing value — useful for recipes, map scales, aspect ratios, and mixing ingredients.
Average Calculator
Compute the arithmetic mean, median, mode, range, count, sum, minimum, and maximum from any list of numbers — essential for descriptive statistics, surveys, and grading.
LCM / GCD Calculator
Find the LCM and GCD (HCF) of two or more integers using the Euclidean algorithm — useful for simplifying fractions, finding common denominators, and scheduling repeating events.
Prime Number Checker
Test whether any integer is a prime number using trial division up to its square root, and view the complete unique prime factorization for composite numbers.
Browse all Math calculators & converters
See every tool in this category, plus FAQs and category-specific guides.