What is the Logarithm Calculator?
This free logarithm calculator evaluates a number with base 10, base 2, the natural base e, or your own positive base. Switch to antilog mode when you know the exponent and want the corresponding number instead. Both modes show the inputs, formula, intermediate values and a reverse-operation check rather than giving an unexplained answer.
You can use the tool while practising algebra, checking a spreadsheet formula or comparing two numerical representations. For a broader expression with several arithmetic operations, open the Scientific Calculator. This dedicated log calculator focuses on choosing the base correctly and understanding the relationship between a logarithm and a power.
How do you use the Logarithm Calculator?
- Select Logarithm to find an exponent, or Antilog to raise the selected base to an exponent.
- Choose common log (base 10), natural log (base e), binary log (base 2), or Custom base. The custom field appears only for that choice.
- Enter the argument for a logarithm, or the exponent for an antilog. Use a decimal point, not a thousands separator; scientific notation such as 2.5e-6 is accepted.
- Calculate, then review the base, input and calculation steps. Changing any field clears the old result so it cannot be mistaken for the new calculation.
Copy, Download and Print include the working as well as the answer. Reset restores the initial operation and empties the number field. A device purchase is not necessary to use this browser-based tool.
Affiliate disclosure: As an Amazon Associate I earn from qualifying purchases.
For a separate arithmetic check, you may browse scientific calculators (paid link). Check the model’s supported functions; choose a model with the log, ln and arithmetic functions you need; ordinary calculators do not necessarily solve symbolic inequalities. No purchase is required.
What formula or method does the Logarithm Calculator use?
The defining relationship is logb(x) = y exactly when by = x. For a real logarithm, x > 0, b > 0 and b ≠ 1. Change of base gives logb(x) = ln(x) / ln(b). Antilog mode calculates by = exp(y × ln(b)).
Base 10 is the common logarithm, while ln uses the constant e. Base 2 is useful when working with powers of two. A custom base between zero and one is also valid; its logarithm changes sign compared with a base above one. You can compare the inverse calculation with the Exponent Calculator, but keep the same base in both tools.
Worked log and antilog examples
Choose base 2 and enter 128 in Logarithm mode. The result is 7 because 2 raised to 7 is 128. Choose base 10 and enter 0.001 instead: the result is −3, corresponding to 10 raised to −3.
For a custom-base example, choose 0.5 as the base and 0.125 as the argument. The answer is 3. In Antilog mode with base 10 and exponent 2.5, the answer is approximately 316.227766017. This example is not a whole-number power, so the display is an approximation.
When studying powers and roots together, the Square Root Calculator offers a separate check for square roots. Keep an original copy of your inputs when comparing rounded results between different tools.
Precision, input limits and domain errors
The tool uses JavaScript double-precision arithmetic and displays up to 12 significant digits. It is not an arbitrary-precision or symbolic log solver. Displayed intermediate values are rounded for reading; the actual operations use unrounded numbers. A reverse-operation check helps spot a mistaken base, but it does not prove the floating-point result is exact.
Number inputs are limited to 48 characters. Nonzero argument and custom-base magnitudes must be between 1e-100 and 1e100. Antilog exponents must additionally be between −1,000,000 and 1,000,000, and the output must lie between 1e-300 and 1e300. Unsupported ranges produce an error instead of infinity or zero.
Zero and negative arguments have no real logarithm here. A base entered so close to one that the browser rounds it to one is rejected. Other bases close to one may amplify input rounding significantly. Fractions, expressions, complex numbers and symbolic equations are not accepted; enter a decimal approximation when appropriate and do not infer extra accuracy from a long display.
Choosing a related math tool
Use this page for a single numeric logarithm or antilog, not for solving a whole equation containing logarithms. The Linear Equation Calculator and Quadratic Formula Calculator address different equation types. Checking which operation a question actually requests is often more useful than switching blindly between calculators.
Try changing only the base while leaving the argument fixed, then compare the resulting exponents. Next use Antilog mode to recover the original argument. These paired calculations provide a practical way to practise the notation without requiring an account or sending your number inputs to the calculator server.
Worked example and a way to check it
Treat the logarithm as the exponent required to turn its base into its argument.
The base-2 logarithm of 32 is 5 because 2⁵ = 32.
In real arithmetic, keep the argument positive and the base positive and different from 1.
How do you check the inputs and read the result?
Separate expressions from equations
Begin by deciding what the question asks you to return. An expression can be rewritten without solving for an unknown. An equation asks which input values make both sides equal. An inequality asks which values make a comparison true. Simplifying, factoring and solving can appear in the same exercise, but the result of each step means something different. Copy any equality or inequality sign as part of the input. Keeping that distinction visible also helps you tell whether the answer should be a formula, a list of values or an interval.
Account for restrictions before rewriting
Record any restriction from the original statement while it is still visible. Division requires a nonzero denominator, and logarithms have real-domain restrictions. Canceling a factor may remove visible evidence of an excluded value without making that value valid in the original expression. When you perform a transformation that can introduce additional candidates, keep them as candidates until you check them. Substitution into the original form is usually the simplest final check, especially near zeros of a denominator or at a boundary of the real domain.
Make grouping explicit in the input
Copy the signs and grouping first, then supply the numerical coefficients or expression requested by the tool. Parentheses can change the meaning of a denominator, a negative power, or an exponent that contains several terms. When input fields separate a polynomial into its coefficients, enter zeros for missing powers if the fields call for them. In a system or matrix, maintain the same variable order from row to row. If you change notation between paper and calculator, read the entered expression back before using the answer.
Check the output in the original problem
Use a different operation for the check when possible. Expand a factored expression, recombine decomposed fractions, or evaluate the two sides at a proposed solution. A handful of matching values can expose a typo but does not prove two expressions identical everywhere. For an inequality, evaluate a point inside its solution set, a point outside it, and any endpoint whose inclusion could be ambiguous. For multiple solutions, apply the check to each of them so a correct first value does not hide a second value with a different status.
Read exact forms and approximations together
Retain the exact form if another calculation depends on it. Two different-looking formulas may represent the same value once they are expanded, reduced, or written with a common denominator. Conversely, two displayed decimals can look identical at the chosen precision while representing different values. When a result lies close to an excluded input or a decision boundary, avoid settling that question solely from its printed decimal. Check the original domain, the sign of the exact quantity, or a calculation performed with more digits.
Logarithm Calculator FAQs
Sources and methodology
These educational references explain the mathematical ideas. This independently implemented calculator is not affiliated with their publisher. Its supported methods, exact checks and limits are documented above.
