Categories
Pages
π

Logarithm Calculator

Calculate logarithms with any base (log10, log2, ln) and solve for x in logarithmic equations.

LIVE
379
Uses
1
Select typeChoose conversion direction
2
Enter amountType the value to convert
3
Get resultsSee live conversion rates
NUMBER
:
BASE (optional)
:

Copy the code below to embed this calculator on your website:

<iframe src="https://calculatorcafe.com/widget/logarithm-calculator/" width="100%" height="500" frameborder="0" style="border:1px solid #e2e8f0;border-radius:12px"></iframe>

Free to use · Links back to CalculatorCafe

What Is a Logarithm?

A logarithm answers the question: "to what power must the base be raised to produce a given number?" The logarithm base 10 of 1000 is 3 because 10^3 = 1000. The logarithm base 2 of 8 is 3 because 2^3 = 8. Written as log₁₀(1000) = 3 or log₂(8) = 3. Logarithms are the inverse of exponents, just as subtraction is the inverse of addition. They compress large number ranges into manageable scales and appear in science, engineering, finance, acoustics, earthquake measurement, and information theory.

Types of Logarithms

Common logarithm (log or log₁₀): Uses base 10. log(100) = 2 because 10² = 100. Standard in engineering, chemistry (pH), and decibel calculations. Natural logarithm (ln or logₑ): Uses base e (approximately 2.71828). ln(e) = 1, ln(1) = 0. Standard in calculus, physics, and continuous growth models. Binary logarithm (log₂): Uses base 2. log₂(256) = 8 because 2^8 = 256. Standard in computer science where binary operations dominate. The calculator above supports all three common bases plus any custom base you specify.

Logarithm Rules and Properties

Logarithms follow rules that mirror exponent laws. Product rule: log(a times b) = log(a) + log(b). Logarithm of a product equals the sum of individual logarithms. Quotient rule: log(a/b) = log(a) - log(b). Power rule: log(a^n) = n times log(a). An exponent inside a log comes out as a multiplier. Change of base: logₐ(x) = log(x) / log(a). This lets you convert between any bases using your calculator's built-in log function. Identity: log(1) = 0 for any base, because any number raised to 0 equals 1. These properties transform complex multiplication and division into simpler addition and subtraction.

How to Solve Logarithmic Equations?

To solve log equations, use the definition: if log_b(x) = y, then b^y = x. For log₂(x) = 5, convert to 2^5 = x, so x = 32. For equations with logarithms on both sides, use properties to combine them. If log(x) + log(3) = log(12), then log(3x) = log(12), so 3x = 12 and x = 4. For equations mixing logs and constants like log(x) = 3.5, convert to x = 10^3.5 = 3,162.28. Enter values in the calculator above to check your work or solve directly.

Where Are Logarithms Used?

The Richter scale measures earthquake magnitude logarithmically: each whole number increase represents a tenfold increase in wave amplitude. A magnitude 7 earthquake is 10 times stronger than magnitude 6 and 100 times stronger than magnitude 5. The decibel scale measures sound intensity logarithmically: 80 dB is 10 times more intense than 70 dB. The pH scale in chemistry is a negative logarithm of hydrogen ion concentration. In finance, logarithmic returns model compound growth. In biology, population growth and drug concentration decay follow logarithmic curves. In computer science, algorithm efficiency is often expressed using log₂ (binary search runs in log₂(n) time). Logarithmic scales appear wherever quantities span many orders of magnitude.

Common Logarithm Values to Know

For base 10: log(1) = 0, log(2) = 0.301, log(3) = 0.477, log(5) = 0.699, log(10) = 1, log(100) = 2, log(1000) = 3. For natural log: ln(1) = 0, ln(2) = 0.693, ln(e) = 1, ln(10) = 2.303. For base 2: log₂(2) = 1, log₂(4) = 2, log₂(8) = 3, log₂(16) = 4, log₂(32) = 5, log₂(64) = 6, log₂(128) = 7, log₂(256) = 8, log₂(512) = 9, log₂(1024) = 10. Memorizing a few key values helps estimate logarithms mentally and catch calculation errors quickly.

History of Logarithms

John Napier invented logarithms in 1614 to simplify astronomical calculations. Before electronic calculators, logarithm tables and slide rules were the primary tools for multiplication, division, and exponentiation in science and engineering. Navigators used log tables to calculate positions at sea. Engineers used slide rules (which are mechanical logarithm calculators) to design bridges, aircraft, and spacecraft through the 1960s. The natural logarithm base e was later identified by Jacob Bernoulli while studying compound interest, and Leonhard Euler established it as one of the most important constants in mathematics.

How to Use Logarithms for Mental Estimation?

Knowing a few log values enables powerful mental estimates. Since log(2) = 0.301 and log(3) = 0.477, you can estimate logs of many numbers. log(6) = log(2) + log(3) = 0.778. log(8) = 3 times log(2) = 0.903. To estimate how many digits a number has, take the floor of its log base 10 and add 1. log(5,000) is about 3.7, so 5,000 has 4 digits. To estimate powers: 2^10 has log = 10 times 0.301 = 3.01, meaning 2^10 is about 10^3 = 1,000 (actual: 1,024). These mental shortcuts are valuable in technical interviews, back-of-envelope calculations, and any situation where a quick order-of-magnitude estimate matters more than exact precision.

Frequently asked questions

What is a logarithm?
A logarithm tells you what exponent produces a number. log₁₀(1000) = 3 because 10³ = 1000. It is the inverse of exponentiation.
What is the difference between log and ln?
log (common logarithm) uses base 10. ln (natural logarithm) uses base e (2.71828). Both answer the same type of question with different bases.
What is log of 1?
log(1) = 0 for any base, because any number raised to 0 equals 1.
What are the logarithm rules?
Product: log(ab) = log(a)+log(b). Quotient: log(a/b) = log(a)-log(b). Power: log(a^n) = n*log(a). Change of base: logₐ(x) = log(x)/log(a).
Where are logarithms used in real life?
Richter scale (earthquakes), decibels (sound), pH (chemistry), compound interest (finance), algorithm complexity (computer science).
Can you take the log of a negative number?
Not in real numbers. The logarithm of a negative number requires complex numbers. The log of zero is also undefined (approaches negative infinity).
USER RATINGS

Rate This Calculator

Your feedback helps us improve our tools