How do I calculate a logarithm in a base my calculator does not show?
Use change of base: log base b of x equals ln(x)/ln(b), or log(x)/log(b) when both logs use the same valid base. The numerator and denominator must use the same logarithm convention.
Preserve the order of input and base
The logarithm of the input belongs in the numerator and the logarithm of the desired base in the denominator. Reversing that quotient gives a reciprocal result. The desired base must be positive and different from one; the input must be positive.
Calculate a base-three example
To find log base 3 of 81, divide ln(81) by ln(3). Because 81 = 3⁴, the quotient equals 4 before numerical rounding. Using common logs instead gives the same value because the change-of-base factors cancel.
Avoid premature rounding
Rounding each logarithm before division can change the final digits, particularly when the desired base is close to one and its logarithm is small. Retain the calculator’s available precision until the final answer and report a sensible number of digits.
Derive the quotient from an exponential statement
Let y = log_b(x), so bʸ = x. Taking natural logarithms gives y ln(b) = ln(x), and division by ln(b) gives y = ln(x)/ln(b). This division requires b to differ from one, since ln(1) = zero. Both x and b must also be positive for the ordinary real logarithms. The derivation fixes the numerator and denominator order: input x belongs on top and desired base b belongs below. For log₇49, the quotient ln(49)/ln(7) equals two. Reversing it gives one half, which answers log₄₉7 instead. The numbers can both look plausible, so preserve the labels during substitution.
Use one auxiliary base in both places
Common logarithms work just as well: log₁₀(x)/log₁₀(b) gives the same result because both carry the same conversion factor relative to natural logs. Mixing ln(x) with log₁₀(b) leaves that factor uncancelled and changes the answer. For log₃81, either consistent quotient equals four, confirmed by 3⁴ = eighty-one. If you compare tools, check whether a button marked log means base ten and whether ln means base e. Calculator ForEver's selectable-base calculation can be checked with either consistent quotient. Keep exact relationships such as powers of the base when available; they provide a verification independent of matching a string of rounded decimal outputs.
Avoid rounding a small denominator too early
A base near one has a logarithm near zero. Dividing by that small number can magnify the effect of rounding either logarithm. If you round a valid base to exactly one, the denominator becomes zero and the expression is no longer defined. Retain the original input precision and the calculator's full working precision until the final report. A displayed result with several decimals does not guarantee that a base measured to only a few digits supports the same accuracy. To verify, exponentiate the original base using the unrounded result where possible. Calculator ForEver provides a numerical real-log value, not a symbolic proof or an uncertainty interval for approximate measurements. State the base and argument alongside any rounded answer.
Questions about this calculation
Can I use ln in the numerator and log base ten in the denominator?
No. That mixes bases and does not implement the change-of-base formula.
Does changing the auxiliary log base change the answer?
No, provided the numerator and denominator use the same valid auxiliary base. Their common conversion factor cancels, leaving the original desired-base logarithm.
Try these values in the calculator
Find a logarithm in your chosen base.
Use the logarithm calculator