Log Calculator

Calculate logarithms (base 10, base e, or any custom base) instantly and accurately.

Logarithm type:

🔍 What is a Logarithm?

A logarithm (or “log” for short) is the inverse operation of exponentiation. In simple terms, a logarithm tells you what power a specific base must be raised to in order to get a certain number. For example:

x = by  →  y = logb(x)

Here, b is the base, x is the result, and y is the exponent (or the logarithm of x with base b).

When no base is specified, it usually means base 10, also called the common logarithm. If the base is e (Euler’s number, approximately 2.718), we write it as ln(x), the natural logarithm. Another frequently used base is 2, known as the binary logarithm, used in computer science.

⚙️ Where Are Different Logarithm Bases Used?

  • Base 10 (log₁₀) – Common in science and engineering
  • Base e (ln) – Used widely in mathematics, physics, and calculus
  • Base 2 (log₂) – Essential in computing and information theory

📘 Basic Rules of Logarithms

1. Product Rule

When multiplying two numbers inside a log, you can rewrite it as the sum of their individual logs:

logb(x × y) = logb(x) + logb(y)

Example:
log(1 × 10) = log(1) + log(10) = 0 + 1 = 1

2. Quotient Rule

When dividing numbers inside a log, subtract the logs:

logb(x / y) = logb(x) - logb(y)

Example:
log(10 / 2) = log(10) - log(2) = 1 - 0.301 = 0.699

3. Power Rule

If the log argument has an exponent, pull the exponent in front:

logb(xy) = y × logb(x)

Example:
log(26) = 6 × log(2) ≈ 6 × 0.301 = 1.806

4. Change of Base Rule

You can convert a logarithm from one base to another:

logb(x) = logk(x) / logk(b)

Example:
log10(x) = log2(x) / log2(10)

5. Base-Argument Switch Rule

Flip the base and the argument using:

logb(c) = 1 / logc(b)

Example:
log5(2) = 1 / log2(5)

🧠 Other Logarithm Properties to Know

  • logb(1) = 0
  • logb(b) = 1
  • logb(0) = undefined
  • limx→0 logb(x) = −∞
  • ln(ex) = x

Features of This Log Calculator:

  • Calculate log₁₀ (base 10), logₑ (ln), or any custom base

  • Instant real-time calculation

  • Easy-to-use interface

  • Mobile-friendly design

  • Error alerts for invalid input

  • Formula and explanation included

  • No downloads or registration required

How to Use the Log Calculator :

  1. Enter the number you want to calculate the log of.

  2. Choose the type of log: base 10, natural log, or custom base.

  3. If you choose custom, enter your base.

  4. View your result instantly below!

FAQs

FAQs

1. What is a log calculator?
A log calculator is an online tool that helps you instantly calculate logarithms of numbers. You can compute log base 10, natural log (ln), or a custom base with just a few clicks — perfect for math students, engineers, and computer scientists.
2. How do I calculate a logarithm online?
To calculate a log online: Enter the number. Select the log base (10, e, or custom). Click calculate. The tool gives you the accurate result instantly.
3. What is the difference between log and ln?
Log usually refers to the logarithm with base 10, also called the common logarithm. ln (natural logarithm) uses base e (≈2.718), and it's often used in advanced math and science.
4. Can I use a custom base in this log calculator?
Yes! Our calculator allows you to choose any custom base (like 2, 5, or 7). Just select “Custom Base,” input the base value, and calculate your result.
5. What is log base 10 used for?
Log base 10 is used in: - Scientific notation - Engineering - Earthquake measurement (Richter scale) - Sound intensity (decibels)
6. Why is log(0) undefined?
Logarithms are only defined for positive numbers. Since no power of a positive base can give 0, log(0) is undefined in mathematics.
7. How do you convert logs from one base to another?
Use this formula to convert between bases:
logb(x) = logk(x) / logk(b)
For example, to convert from base 10 to base 2:
log2(x) = log10(x) / log10(2)
8. Is this log calculator free to use?
Yes, this log calculator is 100% free to use, with no sign-up required. It works on desktop and mobile browsers for quick and easy access.
9. Can I use this log calculator for binary log (base 2)?
Absolutely! Simply choose the custom base option and enter 2. This allows you to calculate log base 2, which is commonly used in computer science and digital systems.
10. What is the formula for calculating logarithms?
The general formula for a logarithm is:
logb(x) = y  which means  by = x
This tells you what power b (the base) must be raised to in order to equal x.
11. What are the 5 laws of logarithms?
The main logarithmic laws are: - Product Rule: loga(x × y) = loga(x) + loga(y) - Quotient Rule: loga(x ÷ y) = loga(x) − loga(y) - Power Rule: loga(xⁿ) = n × loga(x) - Change of Base Rule: loga(x) = logb(x) ÷ logb(a) - Identity Rule: loga(a) = 1 and loga(1) = 0 These are supported and explained in our tool for better understanding.
12. What is the natural logarithm (ln)?
The natural logarithm, written as ln(x), uses base e (where e ≈ 2.718). It’s commonly used in advanced mathematics, physics, and exponential growth calculations.
13. Why are logarithms important in real life?
Logarithms help us: - Measure sound intensity (decibels) - Analyze earthquake magnitudes (Richter scale) - Handle very large or very small numbers in science - Understand exponential growth in population, finance, and medicine - Compress data in computer science (logarithmic time complexity)
14. Can I calculate negative or zero values in a log?
No. The input value (x) for a logarithm must be greater than zero. - log(0) is undefined - log(negative number) is not defined in real numbers
15. What is log base 2 used for?
Log base 2 (log2) is used in: - Computer algorithms and time complexity - Binary systems - Data compression - Digital electronics You can use our calculator by entering 2 as the base.
16. Is this calculator mobile-friendly?
Yes! Our log calculator is fully responsive and works perfectly on smartphones, tablets, and desktop browsers. You can calculate logs on the go.
17. Does this calculator support complex numbers?
Currently, the calculator supports real numbers only. For complex logarithms, we recommend using advanced math software or symbolic tools.
18. What is the inverse of a logarithm?
The inverse of a logarithm is an exponential function. For example, if log10(x) = 2, then the inverse is 102 = x = 100.
19. How do you calculate log base 10?
To calculate log base 10 of a number, you use the formula:
log10(x)
For example, log10(1000) = 3 because 103 = 1000. You can use our log calculator to do this instantly.
20. Can I calculate logs with a custom base?
Yes, our calculator allows you to enter a custom base. Just input your number and choose your base to get the result instantly. This is useful for base 2 logs (used in computer science) or other applications.
21. What is the logarithm of 1, 0, and a negative number?
- log(1) is always 0, regardless of the base. - log(0) is undefined. - log(negative number) is also undefined in real numbers.
Scroll to Top