Logarithm Calculator
Calculate logarithms with any base including natural log (ln), log base 10, and log base 2.
Logarithm Calculator tool
Example
Input: Log base 2 of 1024 (log2)
Result: log2(1024) = 10 (log10 = 3.0102999566, ln = 6.9314718056)
Because 2^10 = 1,024, log2(1024) = 10. By change of base, ln(1024) / ln(2) = 6.9314718056 / 0.6931471806 = 10.
Common Logarithm Values
| x | log10(x) | ln(x) | log2(x) |
|---|---|---|---|
| 0.5 | -0.3010299957 | -0.6931471806 | -1 |
| 1 | 0 | 0 | 0 |
| 2 | 0.3010299957 | 0.6931471806 | 1 |
| e (2.71828...) | 0.4342944819 | 1 | 1.4426950409 |
| 8 | 0.903089987 | 2.0794415417 | 3 |
| 10 | 1 | 2.302585093 | 3.3219280949 |
| 100 | 2 | 4.605170186 | 6.6438561898 |
| 1000 | 3 | 6.907755279 | 9.9657842847 |
| 1024 | 3.0102999566 | 6.9314718056 | 10 |
Values from this calculator, rounded to 10 decimal places.
- Enter the value you want to find the logarithm of.
- Select the base: common log (base 10), natural log (ln), binary log (base 2), or enter a custom base.
- View the logarithm result along with log10, ln, and log2 of the same number for comparison.
- Review the change-of-base formula in the Formula section to understand the conversion.
- Click the copy button to copy the logarithm value.
What a Logarithm Tells You
A logarithm answers one question: what power do you raise the base to, to get this number? Since 10^3 = 1,000, log10(1000) = 3. This calculator finds logs in base 10, base e (the natural log, ln), base 2, or any base you choose. Whichever you pick, it also lists log10, ln and log2 side by side.
Each base has its own home. Base 10 counts orders of magnitude, so it shows up in pH, the Richter scale and decibels. The Decibel Calculator uses it. The natural log uses e, about 2.71828, and it is the one found in calculus and continuous growth. Base 2 counts doublings, so log2(1024) = 10 tells you 1,024 is 2 doubled 10 times.
Logs are how you solve for an exponent. How long does money take to double at 7% a year? Enter 2 as the number and 1.07 as a custom base, and you get about 10.24 years. How many times must you double 1 to pass 50? log2(50) is about 5.64, so the answer is 6.
For custom bases, the tool uses the change of base formula: log_b(x) = ln(x) / ln(b). The base must be positive and not equal to 1. The number must be greater than 0. The log of 1 is always 0, and numbers between 0 and 1 have negative logs. Results show up to 10 decimal places. To go back from a log to the number, raise the base to that power with the Exponent and Power Calculator.
Formula / How It Works
Frequently Asked Questions
Related Tools
Exponent and Power Calculator
Calculate powers, exponents, and exponential expressions with support for any base and exponent.
Math and NumbersScientific Notation Converter
Convert between standard numbers and scientific notation with E-notation support.
Math and NumbersSquare Root and Nth Root Calculator
Calculate square roots, cube roots, and any nth root of a number with precision.
Math and NumbersNumber Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base.
Math and Numbers