Exponent Calculator
Powers a^b with exact fractions and steps, plus solving a^b = y for the exponent or the base.
This log calculator finds the logarithm of x to any base: log base 10, natural log (ln), log base 2 or a base you type.
log₁₀(50)
log₁₀(50) ≈ 1.698970004, so 10 raised to the power 1.698970004 is 50.
50 is not a rational power of 10, so the logarithm is irrational. The decimal is rounded to 10 significant digits.
Write the question as a power
log₁₀(50) is the exponent y that turns the base into 50.
Use the change-of-base formula
Most calculators only have ln and log₁₀, so divide the logarithm of the number by the logarithm of the base.
Check
Raise the base to the answer and you get the original number back (up to rounding).
It applies , shows each step, gives an exact answer when one exists, such as , and works backwards as an antilog calculator or to solve for the base.
Definition
Plain-text formula: log_b x = y ⇔ b^y = x, b > 0, b ≠ 1, x > 0
A logarithm answers the question "to what power must I raise b to get x?" A positive base raised to any real power is positive, so only positive x have real logarithms.
Change of base
Plain-text formula: log_b x = (ln x)/(ln b) = (log_10 x)/(log_10 b)
Any logarithm can be computed from natural or common logarithms. Both versions give the same result, because the ratio does not depend on the base used.
Antilogarithm
Plain-text formula: antilog_by = b^y, log_b(b^y) = y
The antilog undoes the logarithm: raise the base to the logarithm and you get the number back. The base-10 antilog of 2 is 100, and the natural antilog of y is .
Solving for the base
Plain-text formula: log_b x = y ⇔ b = x^(1/y), y ≠ 0, x ≠ 1
Raise both sides of to the power 1/y. For example, gives . When x = 1, every base gives y = 0, so the base cannot be found.
The answer is an exponent. means : a bit less than 3, since . With a base greater than 1, a logarithm is positive for x greater than 1, zero for x = 1 and negative for x between 0 and 1.
Most logarithms are irrational, so their decimals never end. They are rounded here to 10 significant digits, and the exact form is shown alongside. When x is an exact rational power of b, as in or , the calculator finds the fraction and verifies it with whole-number arithmetic.
Log base 10 (the common log, written log or log₁₀) counts powers of ten: log₁₀ 1000 = 3. It is the log key on most calculators and the base behind pH, decibels and the Richter scale, where each step of 1 means ten times more.
Natural log (ln, base e ≈ 2.718) comes from continuous growth and calculus. To use this page as a natural log calculator, choose the ln base. The derivative of ln x is 1/x, and an amount growing at a continuous rate r doubles after ln 2 ÷ r, about 0.693 ÷ r.
Log base 2 (log₂, sometimes lb) counts doublings, so it appears in computing. log₂ 1024 = 10, a number needs ⌊log₂ n⌋ + 1 binary digits, and binary search through n sorted items takes about log₂ n steps.
ln, log and lg: ln always means base e. log means base 10 on calculators and in science, but base e in much of pure mathematics and in most programming languages, so check the convention. lg usually means base 10. Choosing the base explicitly here avoids the ambiguity.
These laws hold for any valid base b and positive x and y. They turn multiplication into addition and powers into multiplication, which is why logarithms were used for hand calculation.
| Rule | Formula | Example |
|---|---|---|
| Product rule | ||
| Quotient rule | ||
| Power rule | ||
| Log of 1 | ||
| Log of the base | ||
| Inverse | ||
| Reciprocal base |
To expand, split products, quotients and powers with the rules above: .
To condense, run the rules backwards. Move each coefficient into a power first, then combine sums into products and differences into quotients: .
Both directions need every logarithm in the same base, so convert with change of base first if they differ. The rules apply only when x and y are positive, so holds for x > 0 but not for x = −3.
Values to 10 significant digits. The base-10 logs of powers of 10, the base-2 logs of powers of 2 and ln 1 = 0 are exact. Every other entry is irrational.
| x | |||
|---|---|---|---|
| 0.1 | −1 | −2.302585093 | −3.321928095 |
| 0.5 | −0.3010299957 | −0.6931471806 | −1 |
| 1 | 0 | 0 | 0 |
| 2 | 0.3010299957 | 0.6931471806 | 1 |
| 3 | 0.4771212547 | 1.098612289 | 1.584962501 |
| 4 | 0.6020599913 | 1.386294361 | 2 |
| 5 | 0.6989700043 | 1.609437912 | 2.321928095 |
| 6 | 0.7781512504 | 1.791759469 | 2.584962501 |
| 7 | 0.84509804 | 1.945910149 | 2.807354922 |
| 8 | 0.903089987 | 2.079441542 | 3 |
| 9 | 0.9542425094 | 2.197224577 | 3.169925001 |
| 10 | 1 | 2.302585093 | 3.321928095 |
| 100 | 2 | 4.605170186 | 6.64385619 |
| 1000 | 3 | 6.907755279 | 9.965784285 |
On a scientific calculator: most have only log (base 10) and ln. For any other base, use change of base and divide: log₂ 50 = ln 50 ÷ ln 2 ≈ 5.64385619. Some models have a direct key: the Casio fx-991EX has a log with an empty base box, and the TI-84 Plus (operating system 2.55 or later) has logBASE( in the MATH menu.
On a phone: switch the built-in calculator to scientific mode (on most phones, turn it sideways), which has ln and log. Then use the same division for other bases.
By hand: split the number into a power of ten and a few known values, then apply the rules above. With log 2 ≈ 0.30103 and log 3 ≈ 0.47712: log 200 = log 2 + 2 ≈ 2.30103, and log 6 = log 2 + log 3 ≈ 0.77815.
The exponent calculator works in the other direction, raising a number to any power. The scientific notation calculator relates base-10 logarithms to powers of ten.
Zero or a negative number: no real exponent makes a positive base equal 0 or a negative number, so the calculator reports an error and explains why. In the complex numbers, , and the error message gives that value.
Base 1, 0 or a negative base: every power of 1 is 1, so log₁ x has no single answer. Zero and negative bases do not give a continuous logarithm. Bases between 0 and 1, such as 1/2, are allowed.
Precision: decimals are rounded to 10 significant digits. Inputs are read exactly, so 0.1 means exactly 1/10, and exact answers come from integer arithmetic rather than floating-point rounding. The methodology page describes how the results are tested.
To what power must 5 be raised to give 100?
Answer: , an irrational number.
ln is the natural logarithm, base e ≈ 2.718. log usually means base 10 on calculators, so log 1000 = 3 while ln 1000 ≈ 6.907755279. They differ by a constant factor: ln x ≈ 2.302585093 × log₁₀ x.
Divide the log of the number by the log of 2, using either ln or log: log₂ x = ln x ÷ ln 2 = log x ÷ log 2. For example, log₂ 5 = log 5 ÷ log 2 ≈ 0.6989700043 ÷ 0.3010299957 ≈ 2.321928095. Here, choose Binary log and the division is done for you.
In base 10: log 1 = 0, log 2 ≈ 0.30103, log 3 ≈ 0.47712, log 4 ≈ 0.60206, log 5 ≈ 0.69897, log 6 ≈ 0.77815, log 7 ≈ 0.84510, log 8 ≈ 0.90309, log 9 ≈ 0.95424 and log 10 = 1. The common log values table above gives them to 10 digits, with ln and log₂.
A positive base raised to any real power gives a positive result, so no real exponent produces 0 or a negative number. As x approaches 0, the logarithm heads toward minus infinity without reaching a value.
Raise e to the power: if ln x = y, then x = . For example, ln x = 2 gives x = . Choose Antilog with the natural log base to do this, or base 10 to undo a common log.
The antilog undoes a logarithm: the antilog of y to base b is . For example, the base-10 antilog of 2.5 is .
10 log₁₀ 10 = 10 × 1 = 10. The form 10 log₁₀(ratio) is the decibel formula for power: a power ratio of 100 is 10 × 2 = 20 dB.
Rewrite as , then take the y-th root: . For example, gives . Choose Solve for base, enter x and y, and the calculator gives the exact base when the root is rational.
Yes. With a base such as 1/2, the logarithm decreases as x increases. For example, because . Only bases of 1, 0 or negative numbers are excluded.
Powers a^b with exact fractions and steps, plus solving a^b = y for the exponent or the base.
Square, cube and nth roots in simplest radical form, with decimals and prime-factor steps.
Convert to scientific, E and engineering notation, or add, subtract, multiply and divide, with steps.
Type or tap expressions with exact fractions, memory, variables, constants and complex mode.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?