Free Log Calculator

log_b(x)

Enter a number and base to calculate the logarithm

The Log Calculator is a free log calculator online that computes the logarithm of any positive real number for a base you choose (the base must be positive and not equal to 1). Whether you need a natural log calculator, a log base 2 calculator, or a standard base‑10 logarithm, this logarithm calculator delivers an immediate answer. It also uses the change‑of‑base formula internally, so it works seamlessly for any base you specify.

What is a logarithm?

A logarithm is the inverse operation of exponentiation. If by=xb^{y} = x with b>0b > 0 and b≠1b \neq 1, then the logarithm of xx with base bb is yy: log⁡b(x)=y\log_{b}(x) = y. In other words, log⁡b(x)\log_{b}(x) tells you the exponent to which bb must be raised to obtain xx. For example, 23=82^{3} = 8 implies log⁡2(8)=3\log_{2}(8) = 3. The definition also leads to the identity blog⁡b(x)=xb^{\log_{b}(x)} = x.

Natural logarithm (base ee)

The natural logarithm uses the constant e≈2.718281e \approx 2.718281 as its base. It is typically written as ln⁡(x)\ln(x) or log⁡e(x)\log_{e}(x). The number ee arises naturally in contexts where growth compounds continuously. Consider a bank deposit with an annual interest rate of 100% and very frequent compounding. The growth factor after one year is (1+1m)m\left(1 + \frac{1}{m}\right)^{m}, where mm is the number of compounding periods per year. As mm increases, this factor approaches ee:

mm(1+1m)m\left(1 + \frac{1}{m}\right)^{m}
12
102.59374
1002.70481
1,0002.71692
10,0002.71814
100,0002.71826
1,000,0002.71828

Thus, e≈2.71828e \approx 2.71828. Natural logarithms appear frequently in calculus, finance (e.g., continuously compounded interest), economics (e.g., GDP growth rates), and the natural sciences.

Common logarithm (base 10)

The common logarithm, denoted log⁡10(x)\log_{10}(x) or lg⁡(x)\lg(x), uses 10 as its base. It is also called the decimal logarithm. Before electronic calculators, common logarithm tables were widely used for hand computations. Henry Briggs, an English mathematician, popularized this base in the 17th century. Below are some common logarithm values for both bases:

xxlog⁡10(x)\log_{10}(x)ln⁡(x)\ln(x)
100
20.301030.693147
30.4771211.098612
40.602061.386294
50.698971.609438
1012.302585
10024.60517
1,00036.907755

Calculating with an arbitrary base

If you need the logarithm of xx with base bb and the calculator does not directly offer that base, you can apply the change‑of‑base formula:

log⁡b(x)=ln⁡(x)ln⁡(b)=log⁡10(x)log⁡10(b).\log_{b}(x) = \frac{\ln(x)}{\ln(b)} = \frac{\log_{10}(x)}{\log_{10}(b)}.

Our log calculator automatically applies this formula, so you can input any positive base (other than 1) and get the correct result.

Example: log base 2

To compute log⁡2(100)\log_{2}(100) manually using common logs:

  1. Find log⁡10(100)=2\log_{10}(100) = 2.
  2. Find log⁡10(2)=0.30103\log_{10}(2) = 0.30103.
  3. Divide: 2/0.30103≈6.6442 / 0.30103 \approx 6.644.

Thus, log⁡2(100)≈6.644\log_{2}(100) \approx 6.644. With the calculator, you simply enter the number 100 and the base 2 to obtain the answer directly.

Key properties of logarithms

These fundamental rules apply for any valid base b>0b>0, b≠1b\neq1 and are useful for simplifying expressions:

  • Product rule: log⁡b(xy)=log⁡b(x)+log⁡b(y)\log_{b}(xy) = \log_{b}(x) + \log_{b}(y)
  • Quotient rule: log⁡b ⁣(xy)=log⁡b(x)−log⁡b(y)\log_{b}\!\left(\frac{x}{y}\right) = \log_{b}(x) - \log_{b}(y)
  • Power rule: log⁡b(xy)=ylog⁡b(x)\log_{b}(x^{y}) = y \log_{b}(x)
  • Log of the base: log⁡b(b)=1\log_{b}(b) = 1
  • Log of 1: log⁡b(1)=0\log_{b}(1) = 0
  • Reciprocal rule: log⁡b ⁣(1x)=−log⁡b(x)\log_{b}\!\left(\frac{1}{x}\right) = -\log_{b}(x)

A brief history of logarithms

The concept of logarithms can be traced back to 8th‑century India, but the modern idea was published by the Scottish mathematician John Napier in 1614 in his work Mirifici Logarithmorum Canonis Descriptio. His goal was to simplify the tedious astronomical calculations of the time. Henry Briggs visited Napier and together they developed the first table of base‑10 logarithms, published in 1624. Later, the slide rule—a physical device that used logarithmic scales—was invented by William Oughtred around 1622 and became an essential tool for engineers, scientists, and even astronauts until the electronic calculator era.

Real‑world applications of logarithms

Logarithms describe many natural phenomena. A logarithmic spiral appears in the shells of nautiluses, in galaxies, and in cyclones. Sound intensity is measured in decibels (dB), which are logarithmic. The Richter scale for earthquakes, the pH scale for acidity, and the Mohs scale for mineral hardness are all logarithmic. In finance, the natural logarithm is used to model continuously compounded interest and to compute growth rates. In science, logarithms help in analyzing exponential growth and decay, such as population growth and radioactive decay.

Using logarithms to simplify arithmetic

Before pocket calculators were common, logarithms were a powerful tool for multiplication, division, exponentiation, and root extraction. The product rule log⁡b(xy)=log⁡b(x)+log⁡b(y)\log_{b}(xy) = \log_{b}(x) + \log_{b}(y) allowed multiplication to be performed as addition. As an example, to find 5.89×4.735.89 \times 4.73 without a calculator:

  1. Look up log⁡10(5.89)≈0.7701153\log_{10}(5.89) \approx 0.7701153 and log⁡10(4.73)≈0.674861\log_{10}(4.73) \approx 0.674861.
  2. Add them: 0.7701153+0.674861=1.44497630.7701153 + 0.674861 = 1.4449763.
  3. Find the antilog (10 raised to that power) to get 101.4449763=100.4449763×10110^{1.4449763} = 10^{0.4449763} \times 10^{1}. The antilog of 0.44497630.4449763 is about 2.785972.78597, so the product is approximately 27.859727.8597.

This method also handles massive numbers, such as 100!100!. By summing the logs of the integers from 1 to 100, we obtain log⁡10(100!)≈157.97\log_{10}(100!) \approx 157.97, so 100!≈100.97×10157=9.33×10157100! \approx 10^{0.97} \times 10^{157} = 9.33 \times 10^{157}.

The free log calculator online makes such calculations trivial, but understanding the underlying principle reveals why logarithms are so valuable.

FAQ

1. What is the logarithm of 1?

The logarithm of 1 is always 0 for any valid base, because any nonzero base raised to the power 0 equals 1.

2. How can I calculate log base 2 using this calculator?

Simply enter the number and choose base 2. The calculator uses the change‑of‑base formula internally. For example, to compute log2(100), input 100 as the number and 2 as the base.

3. What is the difference between the natural logarithm and the common logarithm?

The natural logarithm (ln) uses e (≈2.71828) as its base, while the common logarithm (lg or log10) uses 10 as its base. Both serve essential roles in mathematics and science.

4. How do logarithms simplify multiplication of large numbers?

Using the product rule, log(xy) = log(x) + log(y). By looking up the logs, adding them, and then finding the antilog, you can multiply numbers without direct multiplication. This technique made complex calculations much easier before electronic calculators.

5. Where are logarithms applied in everyday life?

Logarithms appear in decibels (sound), pH (acidity), the Richter scale (earthquakes), and many natural growth models. They are also used in finance for compound interest and in science for population growth and radioactive decay.

How to Use

  1. Enter the number - Type the positive number (x) you want to find the logarithm of in the first input field.
  2. Enter the base - Type the base (b) for the logarithm. Common bases include 10 (common log) and e (natural log).
  3. Get the result - The calculator automatically computes y = log_b(x) and displays the result in real time.