A logarithm answers a question that seems backwards at first: given the result of an exponentiation, what was the exponent? The Log Calculator makes that question instantly answerable. Enter any two of the three values in the equation log base b of x equals y and it solves for the remaining one, whether you want the logarithm itself, the argument beneath it, or the base it sits on.
How to Calculate a Logarithm
Every logarithm is built from three numbers: the base b, the argument x, and the exponent y, joined by the rule that b raised to y equals x. The logarithm simply describes that relationship from the other side:
log(b, x) = y means b^y = x
To find the log of 1,000 in base 10, ask what power of 10 produces 1,000. Ten squared is 100 and ten cubed is 1,000, so the answer is exactly three. The calculator evaluates the same question for any base, and even computes the argument or the base when those are what you are missing, rather than making you rearrange the equation by hand.
What Is a Logarithm?
A logarithm is the inverse operation of exponentiation, just as subtraction inverts addition and division inverts multiplication. Where exponentiation asks "what do I get when I raise b to the power y?", the logarithm asks "to what power must I raise b to get x?". Every logarithm is tied to a specific base, and different bases are used in different fields. Base 10, the common log, is everywhere in science and engineering because our number system is decimal. Base e, written ln, is the natural log that falls out of continuous growth in calculus and physics. Base 2, the binary log, dominates computer science because computers store information as bits.
How to Use the Calculator
Start by choosing which value you want to solve for with the segmented control at the top. To find the logarithm y, enter the base and the argument. To find the argument x, enter the base and the exponent. To find the base b, enter the argument and the exponent. The sliders let you set the known values, and a handy toggle switches the base to e for natural log work. With the defaults of base 10, argument 1,000 and exponent 3, the calculator displays the complete equation log(10, 1000) = 3 across its three outputs.
Common Logs and Natural Logs
The two logarithms you will meet most often are the common log, base 10, often written simply as log, and the natural log, base e, written ln. The common log aligns with how numbers and magnitudes are written, so log 1,000 equals 3 because 10 cubed is 1,000, and log 0.01 equals negative 2. The natural log grows out of continuous processes such as radioactive decay, compound interest and population growth, where the constant e appears naturally rather than by choice. Although the bases look arbitrary, the two are related by a constant factor, so knowing one gives you the other through the change of base formula.
Change of Base Formula
When you need a logarithm in an unusual base, the change of base formula rewrites it using a base you can actually compute:
log(b, x) = log(k, x) / log(k, b)
Whatever base k you choose, commonly 10 or e, the ratio gives the correct result, because dividing both logs cancels the arbitrary base. The rule also explains why this calculator can accept nearly any base: it needs only a general logarithm function to evaluate the ratio. Practical consequences include converting natural logs to base 10 and back, or expressing binary logs of numbers that are not powers of two.
Rules of Logarithms
Three identities make logarithms powerful in hand calculations. The product rule splits the log of a multiplication into a sum:
log(b, x × y) = log(b, x) + log(b, y)
The quotient rule splits a division into a subtraction:
log(b, x / y) = log(b, x) - log(b, y)
And the power rule pulls an exponent out of the argument as a multiplier:
log(b, x^n) = n × log(b, x)
Together they let complicated products, ratios and powers collapse into simple arithmetic, which is precisely why engineers and scientists reach for logarithms whenever they confront numbers spread across many orders of magnitude. A quick numeric check makes the rules feel concrete: log(10, 1) plus log(10, 10) equals 0 plus 1, which is 1, and indeed log(10, 10) equals 1 because 10 times 1 is 10. Likewise log(10, 1000) minus log(10, 100) equals 3 minus 2, or 1, matching log(10, 10).
Special Values Worth Remembering
A handful of logarithm values recur so often that they are worth memorizing. The log of one is always zero, since any base raised to zero is one. The log of the base itself is always one, since the base raised to the first power is itself. The log of a value between zero and one is negative, and the log of zero is undefined, because no real power of a positive base ever reaches zero. These basics anchor every other computation and catch most mistakes before they travel further. A related pair worth noticing is that the exponent never needs to be an integer: fractional powers produce roots, so a log of one half means a square root, and a log of one third means a cube root.
Finding the Argument and the Base
Solving for the argument is the arithmetic of raising the base to the exponent, the direct inverse of taking a log. Solving for the base uses the exponential relationship again: if b to the power y equals x, then b is the y-th root of x, obtained by raising x to the reciprocal power one over y. This calculator handles all three directions automatically. Whichever value you leave blank, the two known numbers close the equation, and the results panel keeps all three in view so you can read the completed statement at a glance.
Why Base Matters by Field
The same logarithm behaves differently depending on which base suits the problem. Chemistry measures acidity on the pH scale, a base-10 log of hydrogen ion concentration, so a change of one full unit means a tenfold change in concentration. Seismologists use base-10 logs for earthquake magnitude, and audio engineers measure sound in decibels, another logarithmic scale. Computer scientists count bits with base 2, and physicists model exponential decay with base e. Choosing the right base keeps the numbers familiar, which is why the calculator offers base 10, base e with the flick of a toggle, and any base you specify.
Worked Examples
Three short examples show the modes in action. First, find the log: base 2 with an argument of 256. Because 2 raised to 8 equals 256, log(2, 256) is 8, which is how binary logs count the bits needed to store the number 256. Second, find the argument: base 3 with an exponent of 4. Raising 3 to the fourth power gives 81, so log(3, 81) equals 4. Third, find the base: argument 625 with an exponent of 4. Since the fourth root of 625 is 5, the base is 5, and log(5, 625) equals 4.
Each example uses the same underlying identity, b to the power y equals x, and simply rotates which of the three values is the unknown. The calculator performs the rotation automatically, so you never have to rearrange the equation yourself. Entering half-integer exponents works just as well: log(10, 100) with an exponent of 2, or log(10, 316.2) with an exponent of about 2.5, both resolve cleanly through the same machinery.
Common Mistakes
- Forgetting that log of a value between zero and one is negative, not positive.
- Confusing the argument with the result, and reporting the argument instead of the exponent.
- Attempting a log with a base of one or a negative base, both of which are undefined.
- Applying the product rule to a sum instead of a product, an error that produces nonsense results.
- Assuming every log is base 10, when many contexts call for base e or base 2.
- Taking the log of zero or a negative number, which no real logarithm can represent.
Key Assumptions
- The argument and the base are treated as positive real numbers, the only domain where ordinary logarithms are defined.
- The base is assumed distinct from one; the tool enforces a minimum base of 2 on the slider.
- Findings are computed to high floating-point precision and rounded only for display.
- Scientific, financial and computing conventions that use the three classic bases map directly onto the base choice.
From scaling sound levels to counting the depth of a decision tree, logarithms quietly run a surprising portion of the world's measurement. Enter any two of the three values and let the Log Calculator close the equation, returning the log, the argument and the base in one clean view.
Disclaimer
Results are provided as estimates for informational purposes only and may be inaccurate. Always verify outcomes with a qualified professional before making financial or personal decisions based on these calculations.