Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Log Calculator

Solve log_b(x) = y for the logarithm, argument or base. Use natural, common or binary bases, exact fractions and clear working.

Formula reference

y = log_b(x) ⇔ b^y = x; b > 0, b ≠ 1, x > 0

All formulas
  • y = log_b(x) ⇔ b^y = x; b > 0, b ≠ 1, x > 0
  • y = ln(x)/ln(b)
  • x = b^y; b = x^(1/y) (y ≠ 0)
  • ln(x) = log_e(x); log_10(10^y) = y
  • x = 1, y = 0 ⇒ b ∈ (0,1) ∪ (1,∞)
log
=

Your result

Your answer and calculation steps appear here.

Inputs and calculations stay in this browser tab. Copy or export your report before closing.

Logarithms: definitions, examples and inverse solutions

Enter exactly two values and leave the unknown empty. The base must be positive and different from 1; the argument must be positive. Use e only in the base field.

Find a logarithm, base or argument

A logarithm asks which power of a base gives an argument: log_b(x)=y means b^y=x. Enter any two of b,x,y to solve the third. A real logarithm requires b>0,b≠1 and x>0. Bases between 0 and 1 are valid. Use the base shortcuts for e,10 or 2; ln means base e, common logarithm usually means base 10, and a binary logarithm uses base 2.

Worked examples and useful bases

log_10(1000)=3 because 10³=1000. log_2(1/8)=-3 because 2⁻³=1/8. To find a base, enter argument 16 and logarithm 2; the positive base is 4. The negative base-4 also squares to 16, but it is not a valid real logarithm base and is excluded. With base e and argument 1 the result is 0; Euler’s constant is evaluated internally rather than entered as a short decimal.

Inverse cases that need care

The change-of-base formula is y=ln(x)/ln(b). The inverse argument is x=b^y. For missing base and y≠0, b=x^(1/y), retaining only a positive base different from 1. When y=0 and x=1, infinitely many valid bases work; with y=0 and x≠1, none work. If x=1 and y≠0, the apparent base 1 is inadmissible, so there is no solution. A supplied base 1 is always rejected, including log_1(1).

Logarithm laws and their domains

For valid positive arguments and one fixed valid base: log_b(uv)=log_b(u)+log_b(v), log_b(u/v)=log_b(u)−log_b(v), and log_b(u^p)=p log_b(u). There is no corresponding rule splitting log_b(u+v) into a sum. For b>1 the logarithm increases and tends to-∞ as x approaches zero; for 0<b<1 it decreases and tends to+∞. These domain restrictions matter when rearranging equations.

Exact answers and numerical precision

Decimal and fraction inputs are exact rationals. A rational logarithm is labelled exact only after its power relationship is verified with exact arithmetic. Other values use the shared exponent engine, checking 80- and 110-digit calculations, with 150 digits if needed and 18-digit agreement required. This is a consistency check, not a formal error bound. Display 3–15 significant digits;≈ marks a numerical approximation. Failure to recover a rational value does not prove it is irrational.

Limits, units and saving your report

Fraction components permit 40 digits; decimals permit 40 total and 20 fractional digits. Decimal scientific notation allows exponents±1000. A supplied y for inverse work is limited to±10000; numerical result exponents must stay within±4095. Bounded exact rational outputs retain up to 4096 digits per component. No grouped inputs or expressions. Mathematical logarithm arguments are dimensionless; use an appropriate ratio of quantities when units are involved. Copy,CSV and Print / Save as PDF retain inputs and working.

Use Exponent Calculator to explore the inverse power equation, Scientific Calculator for expressions containing several logarithms, and Fraction Calculator to simplify exact rational inputs.

OpenStax supports the change-of-base formula and logarithm laws. ISO 80000-2:2019 is a scoped mathematical-notation reference, not certification of this tool. The real domain, rounding and limits are stated here.

Common questions

Can the base be less than 1?

Yes, any positive base except 1 is valid. The logarithm is decreasing for bases between 0 and 1.

Why is a negative inverse base excluded?

Real logarithms are defined here with positive bases. A negative solution to a particular power equation does not define a real logarithm function.

Can I find an antilogarithm?

Yes. Enter the base and y, leave x empty, and the tool computes x=b^y.

Is log_1(1) equal to zero?

No. Base 1 does not define a logarithm. With a missing base, x=1 and y=0 instead describe infinitely many allowed bases other than 1.

Explore related tools