Free Log Calculator
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 with and , then the logarithm of with base is : . In other words, tells you the exponent to which must be raised to obtain . For example, implies . The definition also leads to the identity .
Natural logarithm (base )
The natural logarithm uses the constant as its base. It is typically written as or . The number 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 , where is the number of compounding periods per year. As increases, this factor approaches :
| 1 | 2 |
| 10 | 2.59374 |
| 100 | 2.70481 |
| 1,000 | 2.71692 |
| 10,000 | 2.71814 |
| 100,000 | 2.71826 |
| 1,000,000 | 2.71828 |
Thus, . 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 or , 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:
| 1 | 0 | 0 |
| 2 | 0.30103 | 0.693147 |
| 3 | 0.477121 | 1.098612 |
| 4 | 0.60206 | 1.386294 |
| 5 | 0.69897 | 1.609438 |
| 10 | 1 | 2.302585 |
| 100 | 2 | 4.60517 |
| 1,000 | 3 | 6.907755 |
Calculating with an arbitrary base
If you need the logarithm of with base and the calculator does not directly offer that base, you can apply the change‑of‑base formula:
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 manually using common logs:
- Find .
- Find .
- Divide: .
Thus, . 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 , and are useful for simplifying expressions:
- Product rule:
- Quotient rule:
- Power rule:
- Log of the base:
- Log of 1:
- Reciprocal rule:
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 allowed multiplication to be performed as addition. As an example, to find without a calculator:
- Look up and .
- Add them: .
- Find the antilog (10 raised to that power) to get . The antilog of is about , so the product is approximately .
This method also handles massive numbers, such as . By summing the logs of the integers from 1 to 100, we obtain , so .
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
- Enter the number - Type the positive number (x) you want to find the logarithm of in the first input field.
- Enter the base - Type the base (b) for the logarithm. Common bases include 10 (common log) and e (natural log).
- Get the result - The calculator automatically computes y = log_b(x) and displays the result in real time.