CalculatorBudy Official Logo
Browse Calculators

Log Calculator

Calculate logarithms with Base e, Base 10, Base 2, or Custom.

Comprehensive Guide to Logarithms: Definition, Rules, and Applications

Mathematics is a language that describes the universe, and logarithms are one of its most powerful tools. Whether you are a student grappling with algebra, a computer scientist analyzing algorithms, or an engineer calculating sound intensity, understanding logarithms is essential. This guide dives deep into the concept of logarithms, exploring their definition, properties, common bases, and real-world applications. Our Log Calculator above makes solving these problems instant, but understanding the "why" and "how" behind the numbers will give you a true mastery of the subject.

1. What Exactly is a Logarithm?

At its core, a logarithm is the inverse operation of exponentiation. Just as subtraction is the opposite of addition and division is the opposite of multiplication, logarithms "undo" exponents. A logarithm answers a very specific question: "To what power must we raise a specific base to produce a certain number?"

The Fundamental Definition:
For any positive numbers b and x (where b ≠ 1), the logarithm of x with base b is denoted as:

logb(x) = y    if and only if    by = x

Here is a breakdown of the components:

Example: Why is log10(1000) = 3? Because 103 = 1000. The base (10) multiplied by itself 3 times equals 1000.

2. The Three "Big" Logarithm Bases

While you can have a logarithm with any valid base (like 5, 12.5, or 100), three specific bases appear so frequently in science and mathematics that they have special names and notations.

A. The Common Logarithm (Base 10)

The common logarithm is written simply as log(x) (without a subscript). If you see "log" on a standard calculator with no base specified, it is almost certainly Base 10.

B. The Natural Logarithm (Base e)

The natural logarithm uses the mathematical constant e (Euler's number), which is approximately equal to 2.71828. This is arguably the most important logarithm in higher mathematics.

C. The Binary Logarithm (Base 2)

The binary logarithm is the language of computers.

3. Essential Logarithm Rules and Properties

Logarithms follow a set of algebraic rules that make simplifying complex equations much easier. These rules essentially turn multiplication into addition and division into subtraction.

Rule NameFormulaExplanation
Product Rulelogb(M · N) = logb(M) + logb(N)The log of a product is the sum of the logs.
Quotient Rulelogb(M / N) = logb(M) - logb(N)The log of a quotient is the difference of the logs.
Power Rulelogb(Mk) = k · logb(M)The exponent of the argument can be moved to the front as a multiplier.
Zero Rulelogb(1) = 0Any base raised to the power of 0 equals 1.
Identity Rulelogb(b) = 1Any base raised to the power of 1 is itself.

4. How to Calculate Logs with Custom Bases

Most physical calculators and standard computer functions only calculate log (Base 10) and ln (Base e). What do you do if you need to calculate log5(100)?

You use the Change of Base Formula. This formula allows you to rewrite a logarithm of any base in terms of a base your calculator supports (usually 10 or e).

Change of Base Formula:

logb(x) = ln(x) / ln(b)

Alternatively: logb(x) = log10(x) / log10(b)

Example Calculation: Calculate log5(100).

  1. Using natural logs: ln(100) ≈ 4.605 and ln(5) ≈ 1.609.
  2. Divide: 4.605 / 1.609 ≈ 2.861.
  3. Check: 52.861 ≈ 100. Correct!

Our Log Calculator tool automatically applies this formula when you select the "Custom" base option.

5. Real-World Applications of Logarithms

Logarithms are not just abstract math concepts; they are embedded in the fabric of how we measure the world. Here are common examples where logs are indispensable:

A. The Richter Scale (Earthquakes)

The Richter scale is logarithmic (base 10). This means an earthquake with a magnitude of 6.0 is not just "one unit" stronger than a 5.0. It has a shaking amplitude that is 10 times greater. A magnitude 7.0 earthquake is 100 times stronger than a 5.0. This logarithmic scale allows scientists to represent huge differences in energy on a simple 1-10 scale.

B. Decibels (Sound)

Human hearing is incredibly sensitive. We can hear a pin drop and a jet engine, even though the jet engine is trillions of times more powerful. To manage this huge range, sound intensity is measured in decibels (dB), which is a logarithmic unit. An increase of 10 dB represents a ten-fold increase in sound intensity. 20 dB is 100 times more intense than 0 dB.

C. pH Level (Chemistry)

In chemistry, pH measures the acidity or alkalinity of a solution. The formula for pH is: pH = -log10[H+], where [H+] is the concentration of hydrogen ions. Because of the negative log, a low pH means high acidity (lots of H+ ions), and a change of one pH unit represents a 10-fold change in ion concentration.

D. Financial Growth (Compound Interest)

If you want to know how long it will take for your investment to double, you use logarithms. The formula to solve for time (t) in compound interest often requires taking the natural logarithm of both sides of the equation. This is the math behind the famous "Rule of 72".

6. History of Logarithms

Logarithms were invented in the early 17th century by the Scottish mathematician John Napier (published in 1614). Before calculators and computers, multiplying large numbers was tedious and error-prone. Napier realized that by using logarithms, multiplication could be turned into addition, which is much faster.

For over 300 years, "log tables" and slide rules (which are mechanical analog computers based on logarithmic scales) were the primary tools for scientists, engineers, and navigators. They were used to design bridges, navigate ships across oceans, and even send rockets to the moon. Today, while digital calculators do the heavy lifting, the concept remains vital for mathematical modeling.

Frequently Asked Questions (FAQ)

Why is log(1) always 0?
This is a universal rule for all bases. In exponentiation, any number (except 0) raised to the power of 0 equals 1 (e.g., 50 = 1, 1270 = 1). Therefore, when you ask "to what power do I raise the base to get 1?", the answer is always 0.
Can you calculate the log of a negative number?
In the realm of real numbers, no. You cannot raise a positive base to any power and get a negative result. For example, 102 is 100, and 10-2 is 0.01 (which is still positive). Since the result is always positive, the argument of a logarithm must always be positive. (Note: Complex number logarithms can handle negative numbers, but that is advanced university-level mathematics).
What happens if the base is 1?
A base of 1 is invalid for logarithms. This is because 1 raised to any power is always 1 (15 = 1, 1100 = 1). Therefore, you cannot use base 1 to produce any other number, and the function fails to be a useful tool.
How do I convert between ln and log?
You can easily convert between natural logs (ln) and common logs (log) using a constant multiplier.
ln(x) ≈ 2.303 · log(x)
log(x) ≈ 0.434 · ln(x)