Enter a number and a base to get its logarithm — including ln and log10 — with an antilog mode and a power check, free in your browser.
Log Calculator
Any-base logarithms, ln, log10 and antilog in one fast tool — every answer power-checked so you can trust it.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Log Result
Calculated locally in your browser
—
Name
—
Calculation type
—
Number (x)
—
Base (b)
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
To find a logarithm, ask to what power the base must be raised to give your number, and compute it with the change-of-base rule log_b(x) equals ln(x) divided by ln(b). For example, log base 2 of 8 is 3 because 2 cubed is 8, and log10 of 1000 is 3.
- log_b(x) = ln(x) / ln(b) (change of base)
- ln uses base e ≈ 2.71828; log10 uses base 10
- x must be above 0 and the base positive and not 1
Powers and their logarithms (base 2 and base 10)
Reference values for this calculator.
| Number | log2 | log10 |
|---|---|---|
| 8 | 3 | 0.90309 |
| 100 | 6.64386 | 2 |
| 1000 | 9.96578 | 3 |
| 1024 | 10 | 3.0103 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Full logarithm suite in one tool: any-base log via the change-of-base rule, natural log, common log10, and the reverse antilog operation, with a power check on every result. Enhancement: the check detail raises the base back to the answer so a wrong base is obvious at a glance.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Common log of one thousand
x = 1000, base 10, common log mode
| Calculation | Steps |
|---|---|
| Use the change-of-base rule: log_b(x) = ln(x) / ln(b) unless a built-in base applies. Compute log10(1000) = 3. Verify by raising the base to the result: 10^3 returns the original number. | log10(1000) = 3 — Logarithms turn multiplication into addition and answer: to what power must the base be raised? |
Result
Example 2
Binary log in computing
x = 1024, base 2
| Calculation | Steps |
|---|---|
| Use the change-of-base rule: log_b(x) = ln(x) / ln(b) unless a built-in base applies. Compute log base 2 of 1024 = 10. Verify by raising the base to the result: 2^10 returns the original number. | log base 2 of 1024 = 10 — Logarithms turn multiplication into addition and answer: to what power must the base be raised? |
Result
Example 3
Natural log of e squared approx
x = 7.389056, natural log mode
| Calculation | Steps |
|---|---|
| Use the change-of-base rule: log_b(x) = ln(x) / ln(b) unless a built-in base applies. Compute ln(7.389056) = 2. Verify by raising the base to the result: 10^2 returns the original number. | ln(7.389056) = 2 — Logarithms turn multiplication into addition and answer: to what power must the base be raised? |
Result
How to use this calculator
Step 1
Decide the base: 2 for doubling/binary questions, 10 for common logs, e for natural logs, or type any other base.
Step 2
Enter x, the number whose logarithm you want (it must be above 0).
Step 3
For a plain log, apply log_b(x) = ln(x) / ln(b): divide the natural log of x by the natural log of the base.
Step 4
Check the answer by raising the base to it: b^(result) should equal x.
Step 5
For an antilog, reverse the process: raise the base to the power y directly.
Frequently asked questions
What does a logarithm actually answer?
A logarithm answers an exponent question: log base b of x is the power you must raise b to in order to get x. So log2(8) = 3 because 2^3 = 8.
Why must the base not be 1 or negative?
Powers of 1 are always 1, so most numbers have no logarithm base 1, and negative bases give non-real results for most inputs. Bases must be positive and different from 1.
What is the difference between ln and log?
ln is the natural logarithm with base e (about 2.71828). On many calculators plain log means base 10. This tool labels both explicitly so there is no ambiguity.
How do I calculate a log with an unusual base?
Use the change-of-base rule: log_b(x) = ln(x) / ln(b). This calculator does that division for any valid base you enter.
What is an antilog?
The antilog reverses a logarithm: antilog base b of y is b^y. If log10(x) = 3, the antilog of 3 base 10 is 1000.
About this calculator
A log calculator evaluates logarithms: given a number x and a base b it finds the exponent y with b^y = x. It also covers the two special bases used everywhere — e for the natural log and 10 for the common log — plus the reverse antilog operation.
Logarithms exist because exponent questions are awkward to answer by trial. Asking '2 to what power gives 1024?' is exactly log2(1024), and the answer 10 is far easier to work with than repeated doubling once numbers get large. Every logarithmic scale in science — decibels, pH, Richter — is this idea applied to quantities that span many orders of magnitude.
The change-of-base rule is what makes one calculator enough for every base: log_b(x) = ln(x)/ln(b). Your calculator hardware only needs natural logs; any other base is a ratio of two of them. The base must be positive and not 1, and the input must be positive, because no real power of a positive base produces zero or a negative number.
A common mistake is mixing up log bases in formulas: information theory uses base 2, most engineering uses base 10, and calculus uses base e. This tool labels the mode on the result and shows a power check — raising the base to the computed result should return your original number.
Use it for growth and decay problems, decibel and pH scales, binary-search and algorithm complexity questions (log base 2), earthquake magnitudes, and any equation where the unknown sits in an exponent.
How to calculate it yourself
Step 1
Decide the base: 2 for doubling/binary questions, 10 for common logs, e for natural logs, or type any other base.
Step 2
Enter x, the number whose logarithm you want (it must be above 0).
Step 3
For a plain log, apply log_b(x) = ln(x) / ln(b): divide the natural log of x by the natural log of the base.
Step 4
Check the answer by raising the base to it: b^(result) should equal x.
Step 5
For an antilog, reverse the process: raise the base to the power y directly.
Real-life examples
How many doublings to a million cells?
A culture starts with one cell and doubles each generation. A biologist asks how many generations reach about one million cells, which is a base-2 logarithm question.
Use the change-of-base rule: log_b(x) = ln(x) / ln(b) unless a built-in base applies. Compute log base 2 of 1000000 = 19.931569. Verify by raising the base to the result: 2^19.931569 returns the original number.
log base 2 of 1000000 = 19.931569 — Logarithms turn multiplication into addition and answer: to what power must the base be raised?
Decibel difference between two sounds
An audio engineer compares a sound 100 times more intense than the reference level; the bel scale is a base-10 log, so she runs the common log first.
Use the change-of-base rule: log_b(x) = ln(x) / ln(b) unless a built-in base applies. Compute log10(100) = 2. Verify by raising the base to the result: 10^2 returns the original number.
log10(100) = 2 — Logarithms turn multiplication into addition and answer: to what power must the base be raised?
Ideas & use cases
- Compare growth: run log2 and log10 on the same large number to see why binary search needs about 3.3 times as many steps as there are decimal digits.
- Undo a log equation: if a problem gives you log10(x) = 4.5, switch to antilog mode with power 4.5 to recover x.
- Estimate orders of magnitude: the integer part of log10 tells you how many digits a number has, which is a fast sanity check on big calculations.
Limitations & sources
- Real logarithms only: negative or zero inputs have no real logarithm, and complex logarithms are not supported. Results are rounded to 6 decimal places.
Sources: NIST Digital Library of Mathematical Functions, logarithm definitions (dlmf.nist.gov) · OpenStax Algebra and Trigonometry, logarithmic functions
