Logarithm Calculator
Calculate logarithms in any base, including common (log10), natural (ln), and binary (log2).
Math
Logarithm Calculator
Generated on April 24, 2026
?What is the Logarithm Calculator?
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.
The Formula
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).
Practical Examples
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.
Frequently Asked Questions
Explore More Tools
GPA Calculator
Calculate your Grade Point Average on the 4.0 scale from your courses.
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.