Logarithm Calculator
Enter a number and a base to compute the logarithm (6-decimal precision).
Updated
Logarithm Calculator
Have you ever looked at a big number and wondered how many times you would have to multiply a smaller number to reach it? That is exactly what a logarithm tells you. Our Logarithm Calculator finds the logarithm of any positive number in any base, whether that is the common log (base 10), natural log (base e), binary log (base 2) or a custom base like 5 or 1.5. It updates the result as you type.
Quick answer
A logarithm answers “to what power must I raise the base to get this number?”: logb(x) = y means by = x. For example, log₁₀(1,000) = 3 because 10³ = 1,000, and log₂(8) = 3 because 2³ = 8. Enter any number and base above and the calculator shows the logarithm instantly.
- Change of base: logb(x) = ln(x) ÷ ln(b), e.g. log₂(10) ≈ 3.321928
- Common bases: 10 (log), e ≈ 2.71828 (ln) and 2 (log₂)
- Always true: logb(1) = 0 and logb(b) = 1
- Only defined for x > 0 and a base > 0 that is not 1
What Is a Logarithm?
In simple terms, a logarithm tells you how many times you need to multiply the base by itself to get another number. The logarithm of 1,000 to base 10 is 3, because 10 × 10 × 10 = 1,000. So a logarithm answers the question: to what power must I raise the base to get this number?
The word comes from the Greek logos (ratio) and arithmos (number). A logarithm reverses exponentiation: instead of asking “what is 2³?”, you ask “2 to what power gives 8?”. For small whole numbers that is easy to do in your head, but for numbers like log₁₀(55) or a base like 1.5 it is not, and that is where the calculator helps.
Logarithm Formula and Change of Base
logb(x) = ln(x) ÷ ln(b) (change of base)
Here b is the base, x is the number (the argument) and y is the logarithm (the exponent). The second line is the change of base formula: it turns a logarithm in any base into natural logarithms, which is how calculators work it out. For example, log₂(8) = 3 because 2³ = 8, and log₁₀(100) = 2 because 10² = 100.
Example Calculations
log2(64) = 6 because 2⁶ = 64
log5(625) = 4 because 5⁴ = 625
log10(55) ≈ 1.740363
ln(10) ≈ 2.302585
A real-world example: loudness in decibels uses a common logarithm, dB = 10 × log₁₀(I ÷ I₀), where I₀ is the reference intensity. A sound 100 times more intense than the reference is 10 × log₁₀(100) = 10 × 2 = 20 dB louder.
Common Types of Logarithms
- Common logarithm (base 10), log₁₀(x) or log(x): used in general maths, science and engineering, such as decibels, pH and the Richter scale.
- Natural logarithm (base e), ln(x): base e ≈ 2.71828, used in calculus, continuous growth and decay, and compound interest. See also the Natural Logarithm Calculator.
- Binary logarithm (base 2), log₂(x): used in computer science and information theory, for bits, binary search and algorithm complexity.
The calculator handles all three with one click on the 10, e or 2 chip, along with any other positive base except 1.
Logarithm Rules
Logarithms turn multiplication into addition, which is why they make large or fast-growing numbers easier to handle:
Quotient: logb(x/y) = logb(x) − logb(y)
Power: logb(xn) = n · logb(x)
Identity: logb(1) = 0, logb(b) = 1
To undo a logarithm, raise the base to the result. That is called the antilogarithm. Use the Antilog Calculator or the Exponent Calculator to go the other way.
Key Terms
- Base (b)
- The number that is raised to a power, such as 10, e or 2. It must be positive and not 1.
- Argument (x)
- The number whose logarithm you are taking (8 in log₂(8)). It must be greater than 0.
- Logarithm (y)
- The result: the exponent the base must be raised to in order to give the argument (3 in log₂(8) = 3).
- Antilogarithm
- The inverse of a logarithm: by. The antilog of 3 in base 2 is 8.
How to Use the Logarithm Calculator
- Enter the number. Type the number you want the logarithm of in the “Number (x)” box. It must be greater than 0; decimals and scientific notation such as 1e6 work.
- Choose the base. Type the base in the “Base (b)” box, or press 10, e or 2 for the common, natural or binary logarithm. Any positive number except 1 works, and you can type e for the natural log.
- Read the logarithm. The result appears as soon as both boxes are filled, rounded to 6 decimal places, with a check underneath (for example log₁₀(1,000) = 3 · 10³ = 1,000). A ≈ sign means the value is rounded.
- Copy the result. Press Copy to copy the logarithm, or click the result to select it. Press Clear or Esc to start again.
Example: enter 55 with base 10 and the result is 1.740363, meaning log₁₀(55) ≈ 1.740363. Enter 64 with base 2 and the result is exactly 6, because 2⁶ = 64.
Where Logarithms Are Used
Frequently Asked Questions (FAQs)
What is a logarithm?
A logarithm is the power you must raise a base to in order to get a number: logb(x) = y means by = x. For example, log₁₀(1,000) = 3 because 10³ = 1,000. Logarithms are the inverse of exponents.
How do I calculate a logarithm with any base?
Use the change of base formula: logb(x) = ln(x) ÷ ln(b), or equally log₁₀(x) ÷ log₁₀(b). For example, log₂(10) = ln(10) ÷ ln(2) = 2.302585 ÷ 0.693147 ≈ 3.321928. This calculator does that for any base you enter.
What is the difference between log and ln?
They use different bases. log usually means the common logarithm, base 10 (log 100 = 2). ln is the natural logarithm, base e ≈ 2.71828 (ln e = 1). In computer science, log often means base 2. To get ln here, press the e chip or type e as the base.
What is log base 2?
The binary logarithm, log₂(x), is how many times you double 1 to reach x: log₂(8) = 3 and log₂(1,024) = 10. It counts the bits needed to store numbers and the steps in a binary search.
Why can’t you take the logarithm of 0 or a negative number?
A positive base raised to any power is always positive, so no power gives 0 or a negative number. As x gets closer to 0, log(x) falls toward minus infinity, but log(0) itself is undefined. The calculator says so instead of showing a result.
Why can’t the base be 1, 0 or negative?
Every power of 1 is 1, so base 1 can never reach any other number. Bases of 0 or below don’t give a consistent value for every power. That is why a logarithm’s base must be positive and not equal to 1.
What is the log of 1?
The logarithm of 1 is 0 in every base, because any base raised to the power 0 equals 1. Likewise, logb(b) = 1 for every base, for example log₁₀(10) = 1.
How accurate is the Logarithm Calculator?
Results are rounded to 6 decimal places, with trailing zeros removed (log₁₀(1,000) shows 3, not 3.000000). When the answer is rounded the working line shows ≈, and when it is exact it shows = with a check such as 2⁶ = 64. Very small results keep 6 significant digits instead of rounding to 0.
Is the Logarithm Calculator free?
Yes. It is completely free, needs no sign-up, and can be used as many times as you like.
Try our Logarithm Calculator to find the log of any number in any base instantly.