Log Calculator: Find Any Logarithm in Seconds
A logarithm can be easy to evaluate when the base and number are familiar. The calculation becomes less straightforward when the base is unusual, the result is a decimal or a fraction, or you need to work in the opposite direction.
This log calculator brings five common logarithm tasks together. You can evaluate logarithms, calculate antilogs, change bases, and work with equations, with the steps shown each time.
Log Calculator
Find any logarithm, antilog, or base, with the working shown.
The number must be positive. The base must be positive and not 1.
log_10(100) = ln(100) ÷ ln(10) = 4.6052 ÷ 2.3026 = 2 Check: 10^2 = 100
The antilog reverses a logarithm: x = b^y. The base must be positive and not 1.
x = 10^3 = 1000 Check: log_10(1000) = 3
Find the base from the result and the exponent: b = x^(1/y).
b = 1000^(1/3) = 10 Check: 10^3 = 1000
Shown as a natural-log division: log_b(x) = ln(x) ÷ ln(b).
log_2(1000) = ln(1000) ÷ ln(2) = 6.9078 ÷ 0.6931 = 9.9658 Check: 2^9.9658 ≈ 1000
Solves a single-log equation log_b(x) = c, then checks the domain.
log_2(x) = 5 x = 2^5 = 32 Check: log_2(32) = 5 Domain: x = 32 is positive, so the solution is valid.
Using the Log Calculator
Choose the mode that matches your calculation. Each mode asks for specific values and returns a result in a different format. Think of it as a log calculator with steps: every mode shows its working, not just the answer.
| Mode | What it accepts | What it returns |
|---|---|---|
| Log of Any Base | A base and a number | log_b(x), with its steps |
| Antilog | A base and an exponent | b^y, with its steps |
| Find Base | A result and an exponent | The base, with its steps |
| Change of Base | A base and a number | log_b(x), using the change-of-base formula with its steps |
| Solve Log Equation | A supported single-log equation | The solution and its domain check |
Step-by-step instructions
1. Log of Any Base
- Choose the Log of Any Base mode.
- Enter the base and the number.
- The calculator shows the calculation and the result.
For a common logarithm, the default is log_10(100) = 2, since 10^2 = 100. For a natural logarithm, ln(100) = 4.6052. For a base-2 logarithm, log_2(100) = 6.6439.
If your question specifically asks for a common logarithm, use the log calculator base 10 calculation. For a binary logarithm, use the log calculator base 2 calculation or enter 2 as the custom base.
2. Antilog
- Choose the Antilog mode.
- Enter the base and the exponent.
- The calculator shows the calculation and the result.
For example, the antilog of 3 with base 10 is 10^3, which equals 1000. The result is 1000.
An antilog calculator is useful when you know the logarithm and need to recover the original value. It applies the same inverse relationship for bases other than 10. In short, this is how to calculate antilog values: raise the base to the given exponent.
3. Find Base
- Choose the Find Base mode.
- Enter the result and the exponent.
- The calculator shows the calculation and the base.
For example, to find the base when the result is 1000 and the exponent is 3, calculate 1000^(1/3), which equals 10.
4. Change of Base
- Choose the Change of Base mode.
- Enter the base and the number.
- The calculator shows the natural-log calculation and the result.
For example, log_2(1000) = ln(1000) / ln(2) = 6.9078 / 0.6931 = 9.9658.
This method is useful when you need to calculate a logarithm with a base that your calculator does not display directly.
5. Solve the Equation
Use this mode when the unknown value is part of a supported single-logarithm equation. The calculator finds the solution and checks whether it is valid within the logarithm's domain.
- Choose this mode.
- Enter the supported logarithmic equation.
- The calculator converts the equation to exponential form.
- Review the domain check to make sure the solution keeps the logarithm's argument positive.
To find the value of x when log_2(x) = 5, rewrite the equation in exponential form: x = 2^5 = 32. The solution is x = 32.
Worked example results
The following examples show the types of calculations available in the calculator. Decimal results are rounded to four decimal places.
| Calculation | Input | Result |
|---|---|---|
| log_10(100) | Base 10, number 100 | 2 |
| ln(100) | Natural log, number 100 | 4.6052 |
| log_2(100) | Base 2, number 100 | 6.6439 |
| Antilog 10^3 | Base 10, exponent 3 | 1000 |
| Find base 1000^(1/3) | Result 1000, exponent 3 | 10 |
| Change of base log_2(1000) | ln(1000) ÷ ln(2) | 9.9658 |
| Solve log_2(x) = 5 | Base 2, result 5 | x = 32 |
The calculator can return exact values when the result is straightforward, such as 2 or 1000, and decimal approximations when the logarithm does not produce a simple integer. For equation solving, the calculator checks that each logarithm's argument is positive before accepting a solution.
For real logarithms, the argument must be positive, and the base must be positive and different from 1. These restrictions are part of the mathematical definition, not just calculator settings.
About Logarithms
A logarithm is an exponent. It tells you what power a base must be raised to in order to produce a given number. It is the inverse operation of exponentiation.
If log_b(x) = y, then b^y = x. For example, log_10(100) = 2 means 10^2 = 100. Similarly, log_2(32) = 5 means 2^5 = 32, and log_5(125) = 3 means 5^3 = 125.
A logarithm reverses exponentiation. If you know the base and exponent, you can calculate the result. If you know the base and the result, a logarithm tells you the exponent.
Log vs ln
- log is the common logarithm, which uses base 10.
- ln is the natural logarithm, which uses base e.
- A natural log calculator gives ln(x).
- An ln calculator gives the same result as the natural log mode.
- A log calculator base e calculation gives ln(x).
In textbooks and on many scientific calculators, a bare log usually means base 10. The convention can vary by mathematical context, particularly in some advanced topics where log can mean the natural logarithm. ln always means the natural logarithm, which uses the mathematical constant e.
For example, log_10(100) = 2. But ln(100) ≈ 4.6052. The results differ because the bases are different. When a question specifies a base, use that base rather than assuming the expression means a common or natural logarithm.
How to Find Log Values
To find the value of a logarithm, identify the base and the number. Then check whether the base can be raised to a power to give the number exactly. If it cannot, use the change-of-base formula.
Change-of-base formula
The change-of-base formula is:
log_b(x) = log_10(x) / log_10(b)
You can also use natural logarithms:
log_b(x) = ln(x) / ln(b)
The formula works with any base that your calculator supports, usually 10 or e. It lets you calculate logarithms with bases that are not on your calculator's list.
Worked example: log_10(100) = 2
Finding log_10(100) means finding the power to which 10 must be raised to get 100. In other words, log_10(100) = 2, because 10^2 = 100.
You can also use the change-of-base formula:
- log_10(100) = ln(100) / ln(10) = 4.6052 / 2.3026.
- The division equals 2.
Another worked example: log_2(100) = 6.6439
Finding log_2(100) means finding the power to which 2 must be raised to get 100. That power is not a whole number, so you must use the change-of-base formula:
- log_2(100) = ln(100) / ln(2) = 4.6052 / 0.6931.
- The division equals 6.6439.
Fractional result: log_8(2) = 1/3
Finding log_8(2) means finding the power to which 8 must be raised to get 2. Because raising 8 to the power 1/3 gives 2, the answer is 1/3. The full result is log_8(2) = 1/3 ≈ 0.3333, because 8^(1/3) = 2.
Negative result: log_10(0.01) = −2
A logarithm can be negative. Finding log_10(0.01) means finding the power to which 10 must be raised to get 0.01. Since 10^(−2) = 1/100 = 0.01, the answer is −2. A negative logarithm appears because the number is between 0 and 1.
What to check
When you calculate a logarithm, check the base and the result. A base of 1 gives no useful logarithm, and the number (the argument) must be positive. If the calculation gives a whole number, check it by raising the base.
Log Rules
These rules turn multiplication and powers into addition and multiplication, which makes it easier to simplify log problems.
Product rule
log_b(xy) = log_b(x) + log_b(y)
For example, log_10(100 × 10) = log_10(100) + log_10(10) = 2 + 1 = 3. The answer matches because 100 × 10 = 1000, and log_10(1000) = 3.
Another example: log_2(8 × 4) = log_2(8) + log_2(4) = 3 + 2 = 5. The product is 32, and log_2(32) = 5.
Quotient rule
log_b(x / y) = log_b(x) − log_b(y)
For example, log_10(100 / 10) = log_10(100) − log_10(10) = 2 − 1 = 1. This matches because log_10(10) = 1.
Power rule
log_b(x^y) = y log_b(x)
For example, log_10(10^4) = 4 log_10(10) = 4 × 1 = 4.
The trap: log(x + y) is NOT log(x) + log(y)
A common error is to apply the product rule to a sum. The equality log(x + y) = log(x) + log(y) is false. The product and power rules only apply to multiplication, division, and exponents, not to addition or subtraction. A product, quotient, or power can be rewritten using these rules. A sum cannot be rewritten in the same way.
Antilog and Find Base
Antilog and find base are both the reverse of a logarithm.
Antilog
An antilog reverses a logarithm. If log_b(x) = y, then antilog_b(y) = b^y = x. For example, the antilog of 3 with base 10 is 10^3 = 1000. The antilog of 5 with base 2 is 2^5 = 32.
Find Base
When the base is unknown, you can use the exponent and the result to find it. The rule is b = x^(1/y), where x is the result and y is the exponent.
For example, the base is 1000^(1/3) = 10, because 10^3 = 1000. The find-base rule works in a similar way for other numbers. If the result is 81 and the power is 4, the base is 81^(1/4) = 3, because 3^4 = 81.
Change of Base
The change-of-base formula lets you calculate a logarithm with a base that your calculator does not display directly. The formula uses base e:
log_b(x) = ln(x) / ln(b)
To calculate log_2(1000), use natural logarithms:
- ln(1000) = 6.9078
- ln(2) = 0.6931
- log_2(1000) = 6.9078 / 0.6931 = 9.9658
The result is 9.9658.
One trap is to reverse the division. If you mistakenly calculate ln(b) / ln(x), you get the reciprocal of the correct result. For example, ln(2) / ln(1000) = 0.1003, which is wrong.
Solving Log Equations
A logarithmic equation can be solved step by step.
Single-log form
If the equation has a single logarithm, convert the logarithm to exponential form. For example, if log_b(x) = y, then x = b^y.
- log_2(x) = 5 means x = 2^5 = 32.
- log_3(x) = 4 means x = 3^4 = 81.
- If log_10(x − 10) = 1, then x − 10 = 10. The solution is x = 20.
Check every candidate solution against the original equation. A value that makes any logarithm argument zero or negative must be rejected.
The domain trap
Consider the equation log_2(x) + log_2(x − 2) = 3.
Step by step:
- Combine the logarithms using the product rule: log_2(x(x − 2)) = 3.
- Convert to exponential form: x(x − 2) = 2^3 = 8.
- Expand and rewrite as x^2 − 2x − 8 = 0.
- Factor the quadratic equation: (x − 4)(x + 2) = 0, so x = 4 or x = −2.
Now test both candidates. For x = 4, both arguments are positive: x = 4 and x − 2 = 2. The solution is valid. For x = −2, both arguments are negative: x = −2 and x − 2 = −4. Logarithms cannot take negative arguments, so x = −2 is an extraneous root. The only solution is x = 4.
This log calculator reports an error if a candidate solution makes any logarithm argument zero or negative. That check keeps the answer inside the logarithm's domain.
When Each Base Is Used
| Base | When to use it | Example |
|---|---|---|
| 10 | Everyday and scientific work | log_10(1000) = 3 |
| e | Growth and calculus | ln(e) = 1 |
| 2 | Computing and doubling | log_2(1024) = 10 |
| Custom | Exam questions | log_5(125) = 3 |
Base 10 is the standard choice for everyday and scientific work, logarithms, antilogs, and decimal scales. An example is log_10(1000) = 3, which follows because 10^3 = 1000.
Base e is the standard choice for growth and calculus. The natural logarithm ln(e) = 1, which follows because e^1 = e.
Base 2 appears in binary and computing problems. It also describes doubling. An example is log_2(1024) = 10, which follows because 2^10 = 1024. A log base 2 calculator is the quickest way to evaluate these.
A custom base appears in exam questions and textbook examples where the base can be any positive number other than 1. An example is log_5(125) = 3, which follows because 5^3 = 125. A log calculator base 3 calculation gives log_3(81) = 4, because 3^4 = 81.
Applications
Richter scale
The Richter scale uses base-10 logarithms to compare the size of earthquakes. An increase of 1 in magnitude means the shaking amplitude is about 10 times larger, and the energy released is about 31.6 times larger. That distinction matters because a statement that one magnitude step releases 10 times the energy is wrong.
Decibels
Decibels use base-10 logarithms to measure sound intensity. An increase of 10 decibels means the intensity is 10 times larger.
pH
pH uses base-10 logarithms to measure acidity. A solution with pH 3 is ten times more acidic than a solution with pH 4.
Compound interest
Compound interest uses the natural logarithm when solving for time in a growth formula. For example, if a quantity grows by a fixed percentage each year, the time needed to reach a target value depends on the logarithm of the ratio of the target to the starting value.
What the Tool Does Not Do in v1
First, this log calculator does not simplify expressions using the rules above. It does not draw a graph of the function, does not provide log tables, does not solve multi-term equations, and does not calculate logarithms of negative numbers or complex numbers.
Why Log Results Differ
The same logarithm can look different depending on the base and the format. The differences are not mistakes.
- Base: a logarithm with base 10 is not the same as a logarithm with base 2 or base e.
- Format: an exact value (such as 2) is different from a rounded decimal (such as 6.6439).
- Rounding: some tools show four decimal places, while others show more or fewer.
- Spelling: a common logarithm can appear as log, log10, or log_10.
- Input: a worked step may include a change-of-base division while another tool shows only the answer.
If the base is not clear in the problem, check the context before you compare values.
Frequently Asked Questions
These questions cover the five modes this log calculator supports and the traps students meet most often.
Convert the logarithm to exponential form. If log_b(x) = y, then x = b^y. For example, log_2(x) = 5 gives x = 2^5 = 32.
An extraneous root is a value that satisfies the algebra but not the logarithm's domain. For example, in log_2(x) + log_2(x − 2) = 3, x = −2 makes both arguments negative, so it is rejected. The only valid solution is x = 4.
Find the power to which the base must be raised to get the number. For example, log_10(100) = 2 because 10^2 = 100. If the answer is not a whole number, use the change-of-base formula.
Use log_b(x) = ln(x) / ln(b). For example, log_2(1000) = ln(1000) / ln(2) = 6.9078 / 0.6931 = 9.9658.
log usually means the common logarithm with base 10, while ln always means the natural logarithm with base e. For example, log_10(100) = 2, while ln(100) ≈ 4.6052.
Raise the base to the exponent for an antilog. For the base, use b = x^(1/y). For example, the antilog of 3 with base 10 is 10^3 = 1000, and 1000^(1/3) = 10.
A logarithm calculator is used to find the value of a logarithm and to check the working. It gives results for common, natural, custom-base, and base-2 logarithms.
Yes. For a base greater than 1, a positive argument between 0 and 1 produces a negative logarithm. A negative result does not mean the argument is negative.
Yes. For example, log_8(2) = 1/3 because 8^(1/3) = 2.
Raise the base to the given exponent. For example, the antilog of 3 with base 10 is 10^3 = 1000. Use this mode when you want to evaluate this inverse operation directly.
The argument must be greater than zero. The base must also be positive and cannot equal 1.
Under the usual common-log convention, log(100) = log_10(100) = 2, because 10^2 = 100.
Final Thought
A logarithm tells you which exponent produces a given number. Once you understand that relationship, evaluating logs, changing bases, calculating antilogs, and solving logarithmic equations become easier to follow. Use the log calculator to check your result, review the working, and make sure every answer satisfies the domain restrictions.
