Calculate logarithms with any base.
A log calculator computes the logarithm of any positive number with any base you choose. Whether you need log base 10 (common log), natural log (ln) using base e, log base 2 for computer science, or a custom base, this tool gives you an instant, precise answer. Logarithms answer the question: "To what power must I raise the base to get this number?"
This calculator also handles inverse logarithms (antilog), which convert a log value back to its original number, and demonstrates key properties of logarithms like the product rule, quotient rule, and power rule. These properties are fundamental in algebra, calculus, and every branch of science.
The logarithm log_b(x) = y means that b^y = x. For example, log_10(1000) = 3 because 10^3 = 1000. To compute a log with an unusual base, use the change of base formula: log_b(x) = ln(x) / ln(b), or equivalently log(x) / log(b). This lets you calculate any logarithm using just natural log or common log.
The antilog (inverse log) reverses the process. If log_10(x) = 2.5, then x = 10^2.5 = 316.23. Antilogs convert logarithmic scale values back to their original numbers, which is essential when working with pH, decibels, or any logarithmic measurement.
Find log base 5 of 125. Ask yourself: 5 raised to what power equals 125? Since 5^3 = 125, the answer is 3. Using the change of base formula: log(125) / log(5) = 2.0969 / 0.6990 = 3.0, confirming the result.
log (or log_10) uses base 10 and is common in chemistry and general science. ln uses base e (approximately 2.718) and is used in calculus, physics, and continuous growth models. log_2 uses base 2 and is standard in computer science for analyzing binary data and algorithm complexity. They are all logarithms, just with different bases.
In the real number system, no positive base raised to any power produces a negative result. Since log_b(x) asks "b to what power equals x," and b^y is always positive for positive b, there is no real answer when x is negative. Complex logarithms exist but require imaginary numbers.
The change of base formula is log_b(x) = log_a(x) / log_a(b), where a can be any base you have available. Most often, you use log_10 or ln since those are on standard calculators. For example, log_7(49) = log(49) / log(7) = 1.6902 / 0.8451 = 2.
An antilog reverses a logarithm. If log_10(x) = n, then antilog(n) = 10^n = x. You use antilogs whenever you need to convert from a logarithmic scale back to the original value. For instance, if a solution has pH 4.5, the hydrogen ion concentration is 10^-4.5 = 3.16 x 10^-5 moles per liter.
The three key properties are: Product Rule: log_b(xy) = log_b(x) + log_b(y). Quotient Rule: log_b(x/y) = log_b(x) - log_b(y). Power Rule: log_b(x^n) = n * log_b(x). These rules let you break complex logarithmic expressions into simpler pieces, which is essential for solving equations.
Logarithms appear everywhere. The Richter scale measures earthquake magnitude logarithmically. Decibels measure sound intensity on a log scale. pH is the negative log of hydrogen ion concentration. Compound interest calculations use logs to find doubling time. Even music uses logarithmic frequency relationships between notes.
Let ChatGPT, Claude, or Perplexity do the thinking for you. Click a button and see what your favorite AI says about Formula Bot.
Calculate tips and split bills with ease.
Calculate your grade point average instantly.
Calculate area for any shape and convert between units.
Find square roots with step-by-step solutions.
Find out what you need on your final exam.
Solve quadratic equations step by step.
Find the missing side of a right triangle.
Calculate annuity payments and values.
Calculate dividend yield and income projections.
Solve long division with detailed steps.
Calculate your exact age in years, months, and days.
Find the slope and equation of a line.
Calculate how your investments grow over time.
Calculate sale prices and savings instantly.
Convert and calculate with scientific notation.
Round numbers to any decimal place.
Calculate markup percentage and profit margins.
Add, subtract, multiply, and divide mixed numbers.
Calculate powers and exponents step by step.
Count and round significant figures.
Find the midpoint between two coordinate points.
Calculate percent error for experiments and data.
Find the GCF and LCM of any numbers.
Convert decimals to fractions in lowest terms.
Sign up for free and unlock unlimited calculations, saved history, and more.
Get Started Free