Logarithm calculator
Try Logarithm Calculator
Loading calculator. If this message stays visible, enable JavaScript and reload.
Your result
The logarithm calculator finds the exponent that turns a chosen base into your positive number. If the base is 3 and the number is 81, the result is 4 because 3⁴ = 81. Enter both values and select Calculate / Run. The base must be positive and different from 1.
A negative logarithm result is not automatically an error. Its meaning depends on the base and the size of the number. This guide explains that sign behaviour, the change-of-base formula, useful power checks and the limits of a rounded numeric result. The Logarithm Calculator calculates one logarithm; it does not rearrange a typed equation or solve for an unknown base.
On this page
- Logarithm Calculator exponent question and scope
- Logarithm Calculator number and base inputs
- Logarithm Calculator change-of-base formula
- Logarithm Calculator signs and reciprocal examples
- Which examples can be checked by raising the base back?
- Which logarithm rules are safe to use around the result?
- How can a logarithm count repeated multiplicative steps?
- How should precision and saved results be handled?
- Frequently asked questions
- Sources
How to use the Logarithm Calculator
Logarithm Calculator exponent question and scope
The logarithm calculator answers an exponent question. Writing y = log_b(x) asks what power y makes bʸ equal x. Here b is the base, x is the positive number being evaluated and y is the answer. The order matters: exchanging the number and base usually changes the question.
For log₃(81), the base is 3 and the number is 81. Since 3 × 3 × 3 × 3 gives 81, the logarithm is 4. For log₈₁(3), the exponent is instead 0.25 because the fourth root of 81 is 3.
OpenStax's College Algebra 2e section on logarithmic functions, checked in 2026, presents logarithmic and exponential notation as inverse descriptions of the same relationship. The calculator evaluates that relationship numerically rather than displaying an algebraic proof.
The result is an exponent, not the original number divided by the base. Dividing 81 by 3 gives 27, which does not answer how many powers of 3 produce 81. Keep that interpretation in mind when a decimal answer looks less familiar than an integer power.
Logarithm Calculator number and base inputs
- Enter x in Positive number.
- Enter b in Logarithm base.
- Check x > 0, b > 0 and b ≠ 1.
- Select Calculate / Run.
- Verify that raising b to the reported exponent gives approximately x.
The default number is 100 and the default base is 10, producing 2. Change both fields deliberately when working in a different base. Leaving the default base in place can produce a valid answer to the wrong logarithm.
Each field expects one numeric value. A string such as log(81), a fraction written as 1/32 or a variable name is not parsed as an expression. Enter the numeric equivalent 0.03125 for one thirty-second.
For a natural logarithm, a numerical approximation to e can be entered as the base. There is no dedicated e-symbol input command in the Logarithm Calculator. The constant is irrational, so a finite decimal entry is an approximation rather than an exact symbolic base.
Use a basic arithmetic calculation to prepare a positive argument if the original question contains several operations. Preserve its parentheses and units in your notes. The logarithm form cannot reconstruct a larger expression from the final numeric argument alone.
Logarithm Calculator change-of-base formula
The engine uses log_b(x) = ln(x) / ln(b), the change-of-base formula. Both natural logarithms are computed numerically and their ratio is formatted for display. The same valid base must be used consistently when applying other logarithm rules around the calculation.
The MDN Math.log() reference, checked in 2026, documents the natural-log operation used in the Logarithm Calculator. The interface adds its own positive-number and valid-base checks.
| Logarithm form | Base to enter | Question being asked |
|---|---|---|
| Common logarithm | 10 | Which power of ten gives x? |
| Binary logarithm | 2 | Which power of two gives x? |
| Natural logarithm | Numerical approximation to e | Which power of e gives x? |
| Another valid real base | A positive value other than 1 | Which power of that base gives x? |
Base 1 is excluded because 1 raised to any real exponent remains 1. It cannot provide a one-to-one inverse for positive numbers. In the change-of-base expression, ln(1) is zero, making the denominator invalid.
The Logarithm Calculator returns the final numeric logarithm. It has no graph, derivation panel, coefficient field or mode for entering two logarithmic expressions at once. Those features appearing on another calculator do not change what these two fields accept.
Logarithm Calculator signs and reciprocal examples
For a base greater than 1, numbers above 1 have positive logarithms, 1 has logarithm zero, and positive numbers below 1 have negative logarithms. A negative exponent represents a reciprocal power rather than a negative argument.
For example, log₂(0.03125) is -5 because 2⁻⁵ = 1/32 = 0.03125. The input remains positive. The minus sign belongs to the exponent returned by the calculation.
A base between 0 and 1 reverses that sign pattern. With base 0.5, a number below 1 can have a positive logarithm. In particular, log₀.₅(0.25) equals 2 because 0.5² is 0.25.
For the same base, log₀.₅(8) is -3 because 0.5⁻³ is 8. This is why a rule about logarithm signs must state whether the base is above or below 1.
Zero and negative arguments are outside the real-number logarithm supported here. The calculator rejects them rather than returning complex components. The fact that a result can be negative does not mean that a negative input is valid.
These sign checks are useful before calculating. If the sign disagrees with the expected relationship, inspect the base and argument before changing decimal places or assuming the calculation engine has failed.
Which examples can be checked by raising the base back?
A reverse power check translates an unfamiliar logarithm into the original exponent question. It is especially useful for exact powers, reciprocal powers and the two inputs that always give the familiar values zero and one.
| Positive number x | Base b | Logarithm y | Reverse check |
|---|---|---|---|
| 81 | 3 | 4 | 3⁴ = 81 |
| 0.03125 | 2 | -5 | 2⁻⁵ = 0.03125 |
| 0.25 | 0.5 | 2 | 0.5² = 0.25 |
| 8 | 0.5 | -3 | 0.5⁻³ = 8 |
| 1 | 7 | 0 | 7⁰ = 1 |
| 7 | 7 | 1 | 7¹ = 7 |
For a number that is not a convenient exact power, expect a decimal approximation. Log base 3 of 18 displays approximately 2.63092975. Raising 3 to those rounded digits gives a value close to 18, with a small rounding difference possible.
The antilog calculator evaluates the corresponding positive-base power. Keep the same base when reversing the logarithm; using base 10 automatically after calculating a base-3 logarithm would not undo the operation.
The exponent calculator is useful for other supported power calculations. Its numeric output is also subject to finite precision. A reverse check is evidence that the values are consistent, not a symbolic proof that every displayed digit is exact.
Which logarithm rules are safe to use around the result?
With a valid fixed base and positive arguments, a logarithm turns multiplication into addition: log_b(u × v) = log_b(u) + log_b(v). It turns division into subtraction: log_b(u / v) = log_b(u) - log_b(v).
For an original base-10 example, 25 × 4 is 100. Adding log₁₀(25) and log₁₀(4) gives log₁₀(100), which is 2. Small differences can appear if separately rounded displayed logs are added rather than retaining full precision.
The corresponding sum rule does not exist. Log_b(u + v) is generally not log_b(u) + log_b(v). The addition inside the logarithm must be evaluated as part of its argument.
For a positive u, log_b(uᵏ) = k × log_b(u). The positive-argument condition matters when translating a larger expression, especially if a variable might be negative.
A difference between logarithmic coordinates represents a ratio in the original values. In base 10, coordinates that differ by 2 correspond to an original-value ratio of 100, because 10² = 100. The coordinate difference itself is not a twofold ratio or an ordinary percentage. Keep the scale definition when moving between its coordinates and the quantities being compared.
The Logarithm Calculator does not simplify such expressions automatically. Write down the applicable rule, check its domain and calculate the required numeric values separately. The ratio calculator may help express a supported positive comparison, but it does not validate the logarithm rule chosen for it.
How can a logarithm count repeated multiplicative steps?
If a hypothetical quantity is multiplied by the same positive factor b on every step, after n steps its ratio to the starting quantity is bⁿ. A logarithm can recover n from that ratio, provided b is not 1 and the ratio is positive.
For example, multiplying by 1.5 seven times gives a ratio of 17.0859375. Entering that ratio with base 1.5 returns 7. This model assumes the same factor applies at every step.
When the target ratio is not an exact power, the logarithm gives a real-valued exponent. If an application permits only complete steps, interpreting that exponent can require rounding up or another explicit rule. The Logarithm Calculator does not decide that application rule for you.
For a target ratio of 20 with factor 1.5, the exponent is approximately 7.38838488. Seven complete steps produce 17.0859375, still below 20; eight produce 25.62890625, above it. If the question asks for the first whole step reaching the target, the appropriate answer is eight. Reporting the decimal logarithm alone would leave that discrete-step question unfinished.
Real observations may not follow a constant-factor model. A logarithm does not establish a future growth rate, explain why a sequence changes or verify that a physical or financial model is appropriate.
A percentage change and a logarithmic exponent are different quantities. Use the percentage calculator for its stated percentage-of-an-amount operation, and retain the model used when translating between a percentage factor and repeated multiplication.
How should precision and saved results be handled?
The displayed logarithm has up to eight decimal places. Browser numeric arithmetic and display rounding limit the digits you can use in a later calculation. A displayed integer can sometimes be a rounded value close to that integer.
Bases very close to 1 deserve particular care because ln(b), the denominator in the change-of-base formula, is close to zero. Small changes in a supplied base or its numeric representation can make a much larger difference to the logarithm.
Copy result copies the current displayed output when clipboard access is available. Save as baseline retains an output for a current-page comparison, and Download CSV exports current result information. These controls are not a complete log of every argument and base entered.
Keep the original number, base, output and rounding used. Reset fields restores the defaults and clears the result and saved baseline. Export or record information you need before replacing the calculation.
The logarithm is computed in your browser. Read the MoneyOr privacy policy for separate site-delivery and analytics practices. Confidential information is unnecessary for checking a numeric exponent relationship.
Frequently asked questions
Why does changing the base change the result for the same number?
The result describes powers of the selected base. For the number 81, base 3 gives exponent 4, while base 9 gives exponent 2. Both power relationships are correct: 3⁴ = 81 and 9² = 81. The original number stays the same, but the exponent question changes. Compare logarithms only after identifying which base each result uses.
Does log inverse mean one divided by a logarithm?
Inverse-function notation usually means undoing the logarithm by raising its base to the supplied exponent. A reciprocal, 1/log_b(x), is a different operation. Read the notation in the original source carefully rather than interpreting every superscript minus one in the same way.
Can I obtain an exact symbolic value such as log base 3 of 2?
No. The output is a numeric approximation. The Logarithm Calculator does not retain an unevaluated logarithm as an exact symbolic expression or prove whether it is rational. Keep the original expression when an exact answer is required.
Does a logarithm of zero mean the answer should be zero?
No. The logarithm that equals zero has argument 1 in every valid base. Argument zero is not supported as a real logarithm here. Confusing the input and output positions reverses the question being asked.
Can I enter a list of positive values?
No. Each run takes one positive number and one base. A comma-separated list is not a batch request. Retain each argument-and-base pair if you compare several outputs.
Should measurement units be entered in the number field?
No. The field takes a numeric value. For a logarithm of a ratio, express both quantities in compatible units before forming that ratio. A meaningful ratio may cancel the units, while taking a log of a dimensional quantity requires the context and reference convention of the original model.
Does a result of 1 mean a 100 percent increase?
No. A logarithm of 1 means the argument equals the selected base. It is an exponent statement, not a percentage-change statement. The starting quantity and comparison rule would be needed before discussing a percentage increase.
Does an integer-looking answer prove the input is an exact power?
Not from the rounded display alone. Nearby results can round to the same visible integer. For an exact mathematical claim, retain the original values and verify the power relationship with suitable exact arithmetic or a proof.
Do I need to register to calculate a logarithm?
No. The MoneyOr tool is free to use without an account. Use a modern browser with JavaScript enabled and check both fields on a phone as well as desktop. The mathematical input rules do not change with screen size.
Sources
- OpenStax: College Algebra 2e: 6.3 Logarithmic Functions. Retrieved 2026-11-15.
- MDN Web Docs: Math.log(). Retrieved 2026-11-15.