Logarithm and Antilog Calculator
Evaluate a logarithm in any valid positive base, or undo a logarithm with an antilog. Natural and common logarithms are shown for positive inputs.
Use consistent units. Enter numbers without thousands separators. Invalid input clears all results.
Inputs and results
Choose the matching mode, then read each field label and note. Results use the same length, time, currency or quantity units as the inputs unless a label says otherwise. A negative change means a decrease.
Formula
log_b(x)=ln(x)/ln(b), where x>0, b>0 and b≠1. Antilog_b(y)=b^y=exp[y ln(b)]. Natural logarithms have base e; common logarithms have base 10.
Worked example
log_10(100)=ln(100)/ln(10)=2, so the base-10 antilog of 2 is 100. log_2(8)=3. Bases between 0 and 1 are valid: log_0.5(4)=-2.
Limits and edge cases
Only real logarithms are covered. x and base must be positive; base 1 is invalid. Inputs may use scientific notation but no thousands separators. Outputs outside magnitude 1e-100 to 1e100, except exact zero logarithms, are rejected rather than shown as infinity or a misleading zero. Decimal calculations use floating-point arithmetic; displayed values are rounded to 12 significant digits. This is an educational tool, not a guarantee about investments or physical systems.
FAQ
Can I take the log of a negative value?
Not in the real-number system used by this page.
Can the base be below 1?
Yes, if it is positive. Such a logarithm decreases as its argument increases.
Formula reference
Background mathematics. Explanation and examples on this page are independently written.