Some calculator questions are really one question in disguise: how many times does this base multiply to reach that number? That question is a logarithm, and it arrives in three common bases: 10, 2, and e. Pick the wrong one and the calculator still gives you a number, quickly and confidently: the wrong number.
The free Scientific Calculator on Ovatly offers all three as functions, ln, log and log2, inside a real expression parser: you type the whole expression at once and press equals. This guide explains which function belongs to which base, and how to check any answer by reversing it into a power.
Contents
- Quick answer
- Three logarithms, three bases
- A logarithm is a power read backwards
- DEG and RAD do not touch logarithms
- Long answers and what the display does with them
- How to calculate a logarithm, step by step
- Worked example: three logarithms, three checks
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To calculate a logarithm: choose the function matching your problem's base, log for base 10, log2 for base 2, or ln for base e. Type it as a function with the number in brackets, close the bracket, and press equals or Enter on the Scientific Calculator. Then check the answer by reversing it: if log(1000) returns 3, raise the base to that power, 10^3, and confirm it lands back on 1000. DEG and RAD are irrelevant here; they only affect trigonometry.
Three logarithms, three bases
A logarithm answers a multiplication question. log asks: 10 to what power gives this number? log2 asks the same about 2, and ln asks it about e, the constant the calculator carries alongside pi. The three are not interchangeable settings of one button; they are three different questions, and the same input gives three different answers.
The calculator's function list names all three plainly: ln, log (base 10) and log2 sit alongside sin, cos, tan, sqrt, cbrt, abs and exp. Each is typed the same way, as a function wrapping its number in brackets, and the parser evaluates the expression when you press equals. There is no logarithm mode and no base setting: the base lives in the function name you choose, so choosing it is the decision this job turns on.
A logarithm is a power read backwards
The reliable way to understand a logarithm result is to reverse it. log(1000) returns 3, and the check is the power written the other way round: 10^3 is 1000. log2(8) returns 3 for the same shape of reason: 2^3 is 8. ln(e) returns 1, because e^1 is e itself.
This reversal is also a working check you can run on the same calculator. Powers use the exponent operator, so after any logarithm you can type the base, the operator and your answer, and see whether the original number comes back. If it does not, the usual cause is the function, not the calculator: a base 10 answer checked against base 2 will never reconcile. Most real logarithms are not whole numbers, and a later section covers what the display does with those.
DEG and RAD do not touch logarithms
One calculator setting changes answers dramatically: DEG or RAD, which decides how trigonometry functions read angles. In DEG, sin(30) returns 0.5; in RAD it returns a different value. It is natural to wonder whether the mode shifts logarithms too.
It does not. The mode belongs to sin, cos, tan and their inverses, asin, acos and atan, because they work with angles. A logarithm involves no angle, so log, log2 and ln return identical values in either mode. Leave the setting wherever it is, and save your attention for the base, the choice that actually moves the answer.
Long answers and what the display does with them
Type log(2000) and the answer is not a tidy whole number; it begins 3.301 and runs on. That length is honest, not a malfunction: results display rounded to 12 significant digits, which is why long answers stop where they do.
Behind the display, the stored value keeps full precision. That matters when you chain: after equals, the result replaces the expression, and the next step continues from the stored value, not from the rounded digits on screen. The display trims the same way elsewhere: 0.1+0.2 shows 0.3, its floating point noise tidied away.
How to calculate a logarithm, step by step
- Open the Scientific Calculator and decide the base of your problem before touching the keys: 10, 2 or e.
- Type the matching function, log, log2 or ln, using the keyboard or the keypad.
- Type the number in brackets and close the bracket. An open bracket stops the calculation with a Missing closing bracket error.
- Press equals or Enter. The result replaces the expression in the display.
- Check the answer by reversing it into a power with the exponent operator: base,
^, and your result should return your starting number. - Keep going from the result if needed: type the next step directly, or store the value with MS and recall it with MR.
Worked example: three logarithms, three checks
Start with log(1000). The base is 10, the function is log, and the answer is 3. Reverse it: 10^3 is 1000, so the answer reconciles exactly.
Now log2(8). Same answer, different question: the base is 2, and 2^3 is 8, so log2 returns 3 as well. The matching results are a coincidence of the chosen numbers; the reversal is what proves each one separately.
Finally ln(e). The calculator carries e as a constant, and the natural logarithm of e is 1, because e^1 is e. Then chain one step: with a result in the display, typing +5 and equals continues from it, so a logarithm can feed a longer calculation without retyping. The history panel keeps the last eight in view while you work.
Limitations and honest tradeoffs
The named logarithm functions are three: log, log2 and ln. The function list offers no other logarithm key, so your problem's base has to be one of the three for a one-step answer.
The calculator cannot know which base your problem intended. It evaluates the expression exactly as typed, so a well-formed expression in the wrong base returns a clean, wrong number with no warning. The reversal check is the defence, and it takes seconds.
History is short-lived: it keeps the last eight calculations and vanishes when the tab closes. Nothing is saved or uploaded, good for privacy, unforgiving if you close the tab on work you needed.
Common mistakes
- Choosing the function by habit. log, log2 and ln answer different questions. Decide the base from the problem, then type.
- Leaving the bracket open.
log(1000stops with a Missing closing bracket error. Close every bracket before pressing equals. - Switching DEG and RAD before a logarithm. The mode changes trigonometry only; logarithms return the same value in both.
- Pressing % as if it were a percent key. It is the remainder operator:
10%3returns 1. - Copying the rounded display into the next step by hand. The stored value keeps full precision; chain from the result instead of retyping digits.
FAQs
What is the difference between ln, log and log2? They ask the same question in three different bases. log is base 10, log2 is base 2, and ln is the natural logarithm, base e. Type the function whose base matches your problem: log(1000) gives 3 because 10^3 is 1000, while log2(8) gives 3 because 2^3 is 8.
How do I type a logarithm on the calculator? Type the function name, then the number in brackets, then press equals or Enter: log(1000), log2(8) or ln(e). The calculator parses the whole expression at once, so close the bracket first, or the calculation stops with a Missing closing bracket error.
Does the DEG or RAD setting change a logarithm result? No. DEG and RAD only affect the trigonometry functions: sin, cos, tan and their inverses. Logarithms involve no angles, so log, log2 and ln return the same value in either mode, and there is no need to switch modes before calculating one.
Why does my logarithm result have so many decimal digits? Most logarithms are not whole numbers, so a long decimal is the honest answer. Results are displayed rounded to 12 significant digits, while the stored value keeps full precision, so chaining further steps from the result uses the unrounded value.
Can I keep calculating from a logarithm result? Yes. After you press equals, the result replaces the expression in the display, so typing +5 and equals continues from it. The history also keeps your last eight calculations, although it vanishes when the tab closes and nothing is saved or uploaded.
Conclusion
A logarithm is a small question with a strict answer: which power of this base makes that number? Choose log, log2 or ln by the base in your problem, type the function with its bracket closed, and reverse the result into a power before trusting it. The Scientific Calculator makes the check easy because powers live in the same expression line. Logarithms usually sit inside larger expressions, and our guide to using brackets to control the order of operations shows how to make those expressions evaluate in the order you intend. For more guides in this series, see our Education and Research Tools guides.
References
- MDN Web Docs, on the Math object and its functions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math