Logarithm calculator: find the log of any number in any base, including natural log, with the formula shown. Runs entirely in your browser, no signup.
Updates automatically as you type.
Calculated in your browser; your inputs are not sent to us. Privacy
Results will appear here.
Calculation details
Every figure above is calculated locally in your browser from the assumptions shown. No inputs are sent anywhere. See the methodology section below for the formulas used.
Use this resultShare the current inputs, or ask ChatGPT to explain the calculation in context.
Ask an AI to explain this result
Share this result
Planning estimate only, not financial, tax, or legal advice. Verify assumptions and current rules before making decisions.
This tool runs in your browser. Your calculator inputs and results are never transmitted to us or to ad/affiliate partners. Ads and sponsored links may set third-party cookies to serve and measure them, but they never receive your calculation values. If you explicitly save a scenario, its permitted fields stay in local browser storage until you clear them. See our Privacy Policy.
Use this result
Share the current inputs or ask ChatGPT to explain the calculation in context.
A logarithm answers which exponent produces the number: the natural log is the power of e, log base 10 is the power of ten and log base 2 the power of two. The natural log of 1,000 is 6.907755, because e raised to that power is 1,000. Logarithms take only positive arguments, and a base must be positive and not equal to 1.
For every real x the exponential e to the x is positive and the natural log of e to the x equals x; the real natural logarithm and exponential are inverse functions (NIST, Digital Library of Mathematical Functions, section 4.2).
Same input, three bases: 2500 gives 3.39794, 7.824046 and 11.287712.
Transparent methodology
How this calculator works
Reviewed August 2026 · BoringToolsKit Editorial Team
Formula
Natural log: ln(x) is the exponent y with e^y = x; the tool also offers log base 10 and base 2.
BoringToolsKit. “Logarithm Calculator.” boringtoolskit.com/log-calculator/ (reviewed August 2026). Free to reference in articles, syllabi, and answer posts with a link.
Privacy: Inputs and results stay in this browser. Any future sponsored recommendation or advertisement will be clearly labeled and kept separate from the calculation.
Worked example: one input, three bases
Enter 2500 and switch the base selector. With base 10, the calculator returns 3.39794, because 2500 sits between 1000 (10^3) and 10000 (10^4), so the answer must land between 3 and 4. Formally, log10(2500) = log10(25) + 2 = 1.39794 + 2, which is a quick mental check of the displayed value.
Switch to natural log and the same input gives 7.824046. That is ln(2.5) + ln(1000) = 0.916291 + 6.907755. Switch to base 2 and you get 11.287712, which makes sense: 2^11 = 2048, and 2500 is only about 22% larger, so the answer is just past 11. The three results differ only by a constant factor (dividing by ln of the chosen base), which is exactly what the change-of-base formula says.
A useful sanity habit: the integer part of a base-10 logarithm tells you the digit count. A result of 3.39794 means 2500 has 4 digits. For pH-style work or decibel work, where log10 dominates, that one rule catches most input mistakes instantly.
Edge cases the calculator handles, and where logs still surprise you
The input rejects zero and negatives with an explicit error message rather than failing silently. That is mathematically required: no real exponent turns 10, e, or 2 into a non-positive number. Inputs between 0 and 1 do work and return negative values; log10(0.0001) = -4 exactly, because 10^-4 = 0.0001. If you need logs of negative magnitudes, compute the log of the absolute value and carry the sign question separately, since complex logs are out of scope here.
Display precision is capped at 6 decimal places, so log2(3) shows as 1.584963 rather than the full repeating expansion. For chained calculations this rounding can compound: multiplying three 6-decimal values can drift in the 7th place, which matters for unit conversions but not for typical order-of-magnitude work.
Floating-point quirks also apply. Math.log10 returns exactly 9 for log2(512), but for values very close to powers of the base, the last displayed digit may differ from a hand derivation by 1 unit in the last place. When an exact power matters (sample sizes, binary capacity, half-life steps like 512 = 2^9), verify by exponentiating the result rather than trusting the final digit.