
Distance Calculator
The distance calculator can be used to calculate the distance between two points in two-dimensional or three-dimensional space
A logarithm answers one question: what power do you raise a base to in order to get a particular number? Take 8 with a base of 2, the answer is 3, because . The same trick works for base 10 (the common log), base (the natural log you see all over calculus), or any other positive base except 1.
The notation is shorthand for . So because , and because . Three bases show up often enough to get nicknames: base 10 is the common log (often written just "log"), base is the natural log (written "ln"), and base 2 is the binary log that shows up everywhere in computer science.
For any other base, the change-of-base identity gets you there. That is the identity this calculator uses internally, which is why you can pick any positive base you like (apart from 1).
Type the number you want to take the log of and pick a base. The result fills in as soon as both inputs have values. For a natural log, type e as the base.
It also runs in reverse. If you already know the log result and either the number or the base, fill in those two and the missing one is solved for you. Handy when you need to crack something like , set base to 2, log to 6, and read off the number, which is 64.
A lot more places than most of us remember from high school. pH measures hydrogen ion concentration on a log scale, so a pH of 4 is ten times more acidic than a pH of 5, not just "a bit" more. Decibels measure sound intensity on a log scale too, which is why the jump from 60 dB to 90 dB sounds dramatically louder than 60 dB to 70 dB. The Richter scale is logarithmic in much the same way, a magnitude 7 quake releases roughly 32 times the energy of a magnitude 6.
Finance uses logs to answer doubling-time questions. At 7% annual return, an investment doubles in about years. In computer science, binary search runs in time because each step halves the search space. And in statistics, a log transform pulls long-tailed distributions back toward something more symmetric, which makes regression and plotting behave.
Logarithms are only defined for positive numbers. log(0) blows up to negative infinity, and the log of a negative number is not a real value (it exists in the complex plane, but that is a different story). The base has to be positive as well, and it cannot equal 1, since 1 raised to any power is still 1, there is no unique answer to solve for. And for any valid base, log(1) is always 0, because anything to the zero power equals 1.
In engineering and on most calculators, "log" with no subscript means base 10, and "ln" specifically means base . In pure math papers, "log" sometimes means the natural log instead, context matters. With this calculator there is no guessing: set the base explicitly to whichever one you need.
Not in the real numbers. The function only returns real values for positive inputs. Complex logarithms do exist and handle negatives, but they live in a different number system.
Because 1 raised to anything is still 1, so the equation can never produce any x other than 1. There is no unique y to solve for, so the function is undefined when the base is 1.
Zero, no matter the base. Any positive number raised to the 0 power equals 1, so the log of 1 always comes back as 0.

The distance calculator can be used to calculate the distance between two points in two-dimensional or three-dimensional space

Find the antilog for any base: common (10), natural (e), binary, or anything else. Enter the log value and base, and you get back the original number.

Convert decimals to percentages and back. Type 0.75 to see 75%, or 25% to see 0.25. Works with negatives and values over 100% too.

Find log₂(x) or work backwards from a logarithm to x. A free binary logarithm calculator for computer science, algorithm analysis, and information theory.

Find ln(x) and e^x in one place. Enter any positive number to get its natural logarithm, or enter a logarithm to recover the original value.
Logarithm Calculator
Calculate logarithms with any base. Works for base 10, base e (natural log), base 2, or any positive base you choose. Solve forwards or backwards from any two values.
https://hexacalculator.com/calculators/mathematics/arithmetic/logarithm-calculator
Mathematics
Arithmetic