Math · FREE ONLINE TOOL

Log Calculator (Logarithm)

Calculate logarithms in a valid positive base, or solve for a missing argument or base from a known logarithm.

What would you like to calculate?

Your inputs

How it works

Logarithm

log_b(x) = ln(x) / ln(b).

The argument and base must be positive, and the base cannot equal one.

Enter a positive number or e.

Enter a positive number or e.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Logarithm
3
Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Log Calculator (Logarithm): a function symbol; plus and division symbols.
Logarithmlog_b(x) = ln(x) / ln(b).
A useful distinction

A negative logarithm can be valid

log₁₀(0.01) equals −2 because 10⁻² = 0.01. A negative answer does not imply an invalid input: with a base greater than one, positive arguments below one naturally produce negative logarithms.

Which exponent gives a number below one?

Base-10 logarithm. A (0.1) → -1. B (0.001) → -3.
Which exponent gives a number below one?
NumberCalculationBase-10 logarithm
A 0.110^(−1) = 0.1-1
B 0.00110^(−3) = 0.001-3

Choosing the logarithm base

A logarithm asks which exponent gives the entered argument for a chosen base. Changing the base changes the result, even though the argument stays the same. Use the missing-base or missing-argument mode only when those are the unknown quantities in your problem. Check the real logarithm domain before calculating; not every combination of signs and base values is valid.

Read a logarithm as a missing exponent

log_b(x) = y means bʸ = x. Enter a positive argument x and a positive base b other than 1. A base of 10 gives a common logarithm; a base of e gives a natural logarithm. The change-of-base formula is log_b(x) = ln(x) ÷ ln(b).

A logarithm may be negative even though its argument must be positive. For a base greater than 1, arguments between 0 and 1 produce negative logarithms.

Work backward from powers to logarithms

Because 2⁶ = 64, log₂(64) = 6. Because 10⁻³ = 0.001, log₁₀(0.001) = −3. Any valid base raised to zero equals 1, so log_b(1) = 0.

Equivalent exponential and logarithmic statements
Power statementLogarithm inputAnswer
2⁶ = 64Argument 64, base 26
10⁻³ = 0.001Argument 0.001, base 10−3
5⁰ = 1Argument 1, base 50
0.5² = 0.25Argument 0.25, base 0.52

Solve for an argument or a base with the inverse mode

If log₃(x) = 4, the missing argument is x = 3⁴ = 81. If log_b(81) = 4, the missing base is b = 81^(1/4) = 3. Choose Solve base or argument, then select which quantity is unknown.

Not every inverse input determines a unique answer. For example, log_b(1) = 0 holds for every valid base, so argument 1 and logarithm value 0 cannot identify one base.

Avoid treating logarithms as ordinary multiplication

For positive arguments with a valid common base, log(xy) = log(x) + log(y), but log(x + y) does not equal that sum. A base must remain the same across an identity.

Zero and negative real arguments are invalid in this real-logarithm tool. Close-to-one bases can make results very sensitive to input rounding because ln(b) is near zero; retain enough digits in the supplied base.

Logarithm: formula and assumptions

log_b(x) = ln(x) / ln(b).

The argument and base must be positive, and the base cannot equal one.

Use Logarithm

Solve base or argument: formula and assumptions

If log_b(x)=y, then x=b^y and b=x^(1/y).

A valid base is positive and different from one. Some zero or unit inputs do not give a unique inverse.

Use Solve base or argument

Worked example

Using the Logarithm example:

Inputs
Number
1000
Base
10
Method

log_b(x) = ln(x) / ln(b).

Result

Example result

Logarithm: 3

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Why can the logarithm base not equal one?

Every power of one is one, so base one cannot provide the one-to-one relationship required for a logarithm.

How do I solve for the argument from a logarithm?

If log base b of x equals y, then x = b^y. The base must be positive and different from one.

Can a logarithm be negative?

Yes. For a base above 1, a positive argument below 1 has a negative logarithm; log₁₀(0.001) = −3.

What is the logarithm of 1?

It is 0 for every valid base, because b⁰ = 1.

Is log(a + b) equal to log(a) + log(b)?

No. The sum of two logarithms of positive arguments equals the logarithm of their product, using the same valid base. There is no corresponding rule that splits the logarithm of a sum.

See our methodology and editorial policy.