Enter a positive number and choose a base to calculate its logarithm.
Logarithms Definition & Laws
A logarithm tells you what power the base must be raised to: log10(1,000) = 3 because 103 = 1,000. The natural log (ln) uses base e, about 2.71828, and log2 uses base 2. Enter any positive number above and pick a base, or type your own, to get the logarithm, the antilog and all three common bases at once.
A logarithm answers: "To what power must I raise the base to get this number?" log₁₀(1000) = 3 because 10³ = 1000. Logarithms convert multiplication to addition, making them essential in science, engineering, music, and computing.
The three most common: log (base 10, science/engineering), ln (natural log, base e ≈ 2.718, calculus and growth), log₂ (base 2, computing and information theory).
Logarithm Laws
Natural Log (ln)
Change of Base Formula
Antilog (Inverse Log)
Logarithm Values Reference Table
Rounded to 4 decimal places. Every number between 0 and 1 has a negative log, and log(1) is 0 in every base.
| x | log10(x) | ln(x) | log2(x) |
|---|---|---|---|
| 0.01 | −2 | −4.6052 | −6.6439 |
| 0.1 | −1 | −2.3026 | −3.3219 |
| 0.5 | −0.3010 | −0.6931 | −1 |
| 1 | 0 | 0 | 0 |
| 2 | 0.3010 | 0.6931 | 1 |
| 3 | 0.4771 | 1.0986 | 1.5850 |
| 5 | 0.6990 | 1.6094 | 2.3219 |
| e (2.71828) | 0.4343 | 1 | 1.4427 |
| 10 | 1 | 2.3026 | 3.3219 |
| 50 | 1.6990 | 3.9120 | 5.6439 |
| 100 | 2 | 4.6052 | 6.6439 |
| 1,000 | 3 | 6.9078 | 9.9658 |
| 1,024 | 3.0103 | 6.9315 | 10 |
| 1,000,000 | 6 | 13.8155 | 19.9316 |
Worked Examples
log10(500)
500 sits between 100 and 1,000, so the answer must be between 2 and 3. The calculator gives 2.6990, and 102.6990 is about 500.
A custom base: log3(81)
Use the change of base formula: ln(81) ÷ ln(3) = 4.3944 ÷ 1.0986 = 4. Check: 34 = 81.
Solving for an exponent: 2x = 50
Take the log of both sides: x = ln(50) ÷ ln(2) = 3.9120 ÷ 0.6931 = 5.6439. So 2 raised to about 5.64 gives 50.
Doubling time
Money growing at 7% a year doubles when 1.07t = 2, so t = ln(2) ÷ ln(1.07) = 10.24 years. At 6% it takes 11.90 years. The compound interest calculator shows the full growth path.
A base below 1: log0.5(8)
The answer is −3, because 0.5−3 = 8. With a base between 0 and 1 the signs flip: numbers above 1 get negative logs.
Undefined Inputs and Common Mistakes
- log(0) is undefined. No power of a positive base equals 0. As x shrinks toward 0 the log heads toward minus infinity, but never reaches a value.
- Negative numbers have no real log. A positive base raised to any power is positive, so log(−5) does not exist in real numbers.
- The base must be positive and not 1. 1 raised to any power is still 1, so base 1 can never reach other numbers. The calculator tells you when an input falls into one of these cases.
Mistakes to avoid
- Logs do not split over addition. log(2 + 3) = log(5) = 0.6990, but log(2) + log(3) = 0.7782, which is log(6). The product rule is log(ab) = log(a) + log(b).
- (log x)2 is not log(x2). For x = 1,000: (log 1,000)2 = 9, while log(1,0002) = 2 × 3 = 6.
- Check which log your tool means. In Excel and Google Sheets, LOG(x) is base 10 and LN(x) is natural. In JavaScript and in Python’s math.log, log means the natural log, and the base 10 version is log10.