Log Calculator | Logarithm Calculator With Steps

Free log calculator finds log base 10, base 2, or any custom base with step-by-step solutions. Solve exact log values and doubling-time problems fast.

Logarithm Calculator

A logarithm answers the question: what power do you raise the base to, in order to get your number? log₁₀(1000) = 3, because 10³ = 1000. Enter a number and a base below to find the log, worked out step by step.
Logarithm Antilog (reverse)

Need a fast, accurate log value? This log calculator finds the logarithm of any number for base 10, base 2, or any custom base you type in, and it shows every step so you can follow the math. Enter your number, pick a base, and read the answer plus a worked solution. Below the tool you will find exact log values people search for most, a doubling-time section for finance, and a plain guide to doing logs on a real calculator.

What Is a Logarithm?

A logarithm tells you how many times a base number must be multiplied to reach a given value. It is the inverse operation of exponentiation.

For example, if 10² = 100, then log10(100) = 2. The logarithm answers one question: what power produces this number?

In mathematics, logs are written as logb(x), where:

  • b is the base
  • x is the number
  • the result is the logarithm value

A logarithmic calculator makes this easy by finding the log value instantly for base 10, base 2, or any custom base. Understanding what a log is helps in algebra, science, computing, and data analysis, where exponential growth and scaling show up constantly.

Logarithm Formula

The logarithm formula shows the link between exponents and logs. It tells you how a number can be written as a power of a base.

  • General formula: logb(x) = y means by = x, where b is the base, x is the number, and y is the logarithm value.
  • Log base 10 formula: log10(x) = y. This is the common logarithm, used widely in math and science.
  • Log base 2 formula: log2(x) = y. This form shows up everywhere in computer science and binary systems.

Most real numbers do not give a whole-number log, so the calculator uses the change of base formula to get an exact decimal:

logb(x) = ln(x) ÷ ln(b)

This is exactly how the tool above works. It takes the natural log of your number, divides by the natural log of your base, and returns the value to six decimals.

How Do You Do Logs on a Calculator?

On most scientific calculators, the log button means base 10 and the ln button means base e. There is usually no direct button for other bases, so you use the change of base formula.

  • For log base 10 (common log): press log, type the number, press equals. Example: log 1000 gives 3.
  • For natural log (base e): press ln, type the number, press equals.
  • For any other base, most physical calculators cannot do it in one step. Type it as a division instead:

log base b of x = log(x) ÷ log(b)

Example: to find log base 2 of 50, type log(50) ÷ log(2), which gives 5.6439. Newer calculators (like the Casio fx-991) have a dedicated log button where you type the base and the number directly. The tool above skips all of this, since you just type the base into its own box.

How to Calculate Logarithms by Hand

You can find a log manually with formulas or instantly with the calculator. The method depends on the base and how much accuracy you need.

  1. Identify the base. Common bases are 10, 2, and e.
  2. Rewrite in exponential form. log10(100) = 2 means 10² = 100.
  3. Find the exponent that produces the given number. That exponent is your log value.
  4. Check the result by raising the base to that power. It should return your original number.

For clean powers this is quick. For values like log10(579) it becomes hard by hand, which is where the calculator earns its place.

Exact Log Values People Search For

Here are common log values worked out to the decimals students and engineers actually look up. Every value below is verified.

ExpressionValueQuick reason
log10(50)1.69897between 10¹ and 10²
log10(473)2.674861between 10² and 10³
log10(579)2.762679between 10² and 10³
log10(1.4625)0.165096close to 1, so log is small
log10(1.499)0.175802close to 1, so log is small
log10(114514)5.058859just above 10⁵
log10(0.99)-0.004365negative, since 0.99 is below 1
log2(50)5.643856between 2⁵ and 2⁶
log2(100)6.643856between 2⁶ and 2⁷
log2(1000)9.965784just under 2¹⁰
log2(500000)18.931569large binary log
log2(1000000)19.931569large binary log
log3(81)4exact, since 3⁴ = 81

A value like log10(0.99) comes out negative because 0.99 is less than 1, so it takes a negative exponent to reach it. Any number below 1 gives a negative log. If you need to round these to a set number of digits, our sig fig calculator handles the rounding cleanly.

How to Solve Log Base 1.0X of 2 (Doubling Time)

This is one of the most useful real-world uses of logs. When something grows at a fixed rate each period, the log tells you how many periods it takes to double. The setup is always the same:

periods to double = log base (1 + rate) of 2 = ln(2) ÷ ln(1 + rate)

Worked example, 2 = (1.0075)b: a rate of 0.75% per period (like a monthly interest rate). Solve for b: ln(2) ÷ ln(1.0075) = 92.77. So it takes about 93 months to double.

Here is the full doubling table for common growth rates, all verified:

Growth rateExpressionPeriods to double
0.75%log base 1.0075 of 292.77
1%log base 1.01 of 269.66
3%log base 1.03 of 223.45
5%log base 1.05 of 214.21
7%log base 1.07 of 210.24
8%log base 1.08 of 29.01
10%log base 1.10 of 27.27

Notice the 1% row lands at 69.66, which is why the "rule of 70" works as a mental shortcut for doubling time. For a full return-on-investment breakdown that uses this same growth math, try our ROI calculator. To solve a mixed version like log(400000 ÷ 136329) ÷ log(1.11), type the division first (400000 ÷ 136329 = 2.9341), then take the log ratio, which gives about 10.31.

Types of Logarithms

Logarithms come in a few standard types based on the base. Each one shows up in specific fields.

  • Common logarithm (base 10): written as log10(x) or just log(x). Used across math, science, and engineering.
  • Natural logarithm (base e): written as ln(x), where e ≈ 2.71828. Central to calculus, growth models, and continuous compounding.
  • Binary logarithm (base 2): written as log2(x). Standard in computer science, data structures, and algorithm analysis.
  • Custom base logarithm: written as logb(x) for any positive base b. The tool above handles any base you type, which makes it a flexible log base calculator for advanced work.

Worked Examples of Log Calculations

These cases walk through different bases from clean whole numbers to decimals.

  • Example 1, base 10: find log10(100). Since 10² = 100, log10(100) = 2.
  • Example 2, base 2: find log2(8). Since 2³ = 8, log2(8) = 3.
  • Example 3, custom base: find log3(81). Since 3⁴ = 81, log3(81) = 4.
  • Example 4, decimal result: find log10(50). It sits between 10¹ and 10², so the answer is between 1 and 2. The exact value is 1.69897.
  • Example 5, custom decimal: find log base 1.93 of 500. Using change of base, ln(500) ÷ ln(1.93) = 9.4516.

Where Logarithms Are Used

Logs simplify calculations that involve very large numbers or exponential change. They turn hard multiplication problems into manageable addition.

  • Math and algebra: solving exponential equations and simplifying powers in algebra and calculus.
  • Computer science: log base 2 drives algorithm analysis, binary systems, data compression, and time complexity (think O(log n)).
  • Science and engineering: measuring things that scale exponentially, such as sound intensity in decibels, earthquake magnitude on the Richter scale, and pH in chemistry.
  • Data analysis: log scales compress skewed data and make wide-ranging values easier to compare on a chart.
  • Finance: growth models, compound interest, and doubling-time calculations like the ones above.

Common Mistakes When Using Logs

Logs are powerful, but small errors lead to wrong answers. Watch for these.

  • Using the wrong base. People mix up base 10 and base 2. Always confirm the base before you calculate, especially when moving between math and computer science.
  • Assuming log always means base 10. In math, log usually means base 10. In computer science, log often means base 2. Read the context.
  • Forgetting logs undo exponents. A logarithm is the inverse of exponentiation. Lose that link and the results stop making sense.
  • Entering invalid values. Logs are only defined for positive numbers. The log of zero or a negative number has no real answer, so the tool returns an error.
  • Rounding too early. Rounding partway through drops accuracy. Round only the final answer.

Try These Calculators Next

  • Yulduz Zaripova

    Data & Analytics Professional · MIT

    Yulduz Zaripova is a New York-based professional specializing in data analytics, financial engineering, and applied mathematics.

  • Muhammad Abdullah Arshad

    MPhil Statistics Scholar

    M. Abdullah Arshad is an MPhil Statistics scholar and Google-certified data analyst specializing in statistical analysis, data mining, and time series modeling.