Logarithm Calculator
Find the exponent y in b^y=x for a positive real number x and a positive base b other than 1. The calculator displays the selected-base logarithm, natural log and common log together so you can compare their meanings.
A logarithm answers an exponent question
- log₂(8)=3 because 2³=8.
- log₁₀(0.01)=−2 because 10⁻²=0.01.
- Every allowed base gives log_b(1)=0; zero and negative arguments have no real logarithm here.
How to use the Logarithm Calculator
- Enter a finite number greater than zero and a finite positive base other than 1. Bases between zero and one are allowed.
- Choose Base 10, Natural log or Base 2 to change the base; Natural log uses the numerical value of e.
- The selected-base result uses ln(x)/ln(b). The other cards show ln(x) and log10(x) independently of the selected base.
- Check the equivalent exponential form b^y=x. Its displayed exponent is rounded, so exponentiating the printed digits may only approximately reproduce x.
Choose a base that matches the question
Base 2 counts doubling intervals, base 10 counts powers of ten, and base e uses natural logarithms. The change-of-base identity ln(x)/ln(b) connects these scales. This calculator takes numbers, not expressions or equations; evaluate an expression elsewhere before entering its value.
Limits of the real-number result
The real domain requires x>0, b>0 and b≠1. A base of 1 cannot identify an exponent because every real power of 1 is 1. A base extremely close to 1 has a very small logarithm, which makes the answer sensitive to input rounding. If a typed base rounds to 1 in floating-point representation it is rejected.
These are finite-precision numerical results, displayed with up to twelve decimal places or scientific notation. Very small positive numbers are supported while they remain representable; inputs that underflow to zero are rejected. There is no complex logarithm, symbolic simplification or uncertainty calculation.
Examples
Binary growth
Enter number 1024 and base 2. The selected-base result is 10 because multiplying by two ten times gives 1024. The common-log card is about 3.01029995664, not 10.
A base below one
Enter number 8 and base 0.5. The answer is −3 because (1/2)⁻³=8. A negative logarithm is valid; it does not mean the input was negative.
Natural logarithm
Enter number 1 and choose Natural log. The result is 0 since e⁰=1. Enter 10 with the same preset to get ln(10)≈2.302585092994. Choose Base 10 to get 1 for that same number.
Frequently asked questions
Why does a base between zero and one give a negative answer for 8?
Powers of such a base decrease as the exponent increases. For base 0.5, the exponent −3 gives 8. This is valid within the real domain.
Do the ln and log10 cards change with my selected base?
No. They always show base e and base 10 for the same number. Only the selected-base card and exponential form use the entered base.
Can I enter zero or a negative number for a complex answer?
No. This tool supports real logarithms only and rejects those arguments. It does not calculate complex branches.
