About the Log Calculator
FreeToolr's Log Calculator evaluates logarithms and solves the relationship log_b(x) = y. Use it to find the result y, recover the argument x, or calculate a missing base b. It helps students, teachers, engineers, programmers, and anyone checking maths homework or technical work. Choose base 10, base e, base 2, or enter a custom base. The calculator accepts decimals, fractions, and scientific notation. It shows the defining equation, change-of-base calculation, and an inverse check when applicable. Valid real-number inputs require x > 0, b > 0, and b != 1. The tool runs in your browser, so your entries are not uploaded to FreeToolr. Unlike a basic log button, it labels the base clearly and supports three common ways to solve a logarithmic relationship.
How to use it
- 1Choose what you want to find: the logarithm, argument, or base.
- 2Enter the known values, including the base and argument when required.
- 3Select base 10, e, base 2, or enter a custom base.
- 4Run the calculation and review the result, formula, and inverse check.
Worked example
To calculate log_2(8), choose Find the logarithm, enter base 2 and argument 8, then calculate. The result is y = 3 because 2^3 = 8.
The formula
Definition: log_b(x) = y if and only if b^y = xChange of base: log_b(x) = ln(x) / ln(b)Find the argument: x = b^yFind the base: b = x^(1/y), when y != 0Real-number conditions: x > 0, b > 0, and b != 1Source: NIST Digital Library of Mathematical Functions, Section 4.2. Last checked 4 November 2026.
What it is good for
- Find y, x, or b from one logarithmic relationship.
- Use base 10, e, base 2, or any valid custom base.
- See clear formulas and an inverse check in your browser.
- The calculator uses real-number logarithms, not complex logarithms.
- Results involving non-perfect powers may be rounded to the displayed precision.
Questions people ask
What is a logarithm?
A logarithm gives the exponent needed to raise a base to a target number. For example, log_2(8) = 3 because 2^3 = 8.
What is log(100)?
In many school and calculator settings, log means base 10. Therefore, log_10(100) = 2. Check the stated base because some advanced maths uses log for the natural logarithm.
What is ln?
ln(x) is the natural logarithm, which uses base e. The value of e is approximately 2.718281828, and ln(e) = 1.
How do I calculate a logarithm with any base?
Use the change-of-base formula: log_b(x) = ln(x) / ln(b). The base must be greater than zero and cannot equal 1, while x must be greater than zero.
Can a logarithm be negative?
Yes. For a base greater than 1 and an argument between 0 and 1, the result is negative. For example, log_10(0.01) = -2.
Why can the base not be 1?
One raised to every power equals 1. It cannot produce a unique exponent for other values, so base 1 is not allowed.
What is an antilogarithm?
An antilogarithm reverses a logarithm. If log_b(x) = y, then x = b^y.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.