Desmos shows decimals by default, but you can force it to display answers as fractions
When you type a calculation into Desmos and press Enter, the calculator usually shows the result as a decimal — for example, 0.333333 instead of 1/3. If you need the answer as a fraction, you have two straightforward options: use the fraction command in your expression, or change how Desmos displays the result after you calculate it.
The method you choose depends on whether you want to see the fraction during calculation or convert a decimal answer afterward. Both take about ten seconds once you know where to look.
Key Takeaways
- Type frac() around any expression to force Desmos to show the result as a simplified fraction instead of a decimal.
- If you have already calculated a decimal answer, click on the result and select the fraction icon from the menu that appears.
- The frac() command works for division, addition, subtraction, and multiplication — any expression that produces a rational number.
- Desmos automatically simplifies fractions, so frac(2/4) displays as 1/2, not 2/4.
- If your answer is irrational (like the square root of 2), Desmos cannot convert it to a fraction and will show a decimal instead.
Using the frac() command to get fractions directly
The simplest way to see a fraction answer is to wrap your entire calculation in the frac() command. Open Desmos, click in the expression box, and type the word frac followed by parentheses around your math.
For example, if you want 5 divided by 8 as a fraction, type: frac(5/8). Press Enter. Desmos displays 5/8 instead of 0.625. If you type frac(1/3 + 1/4), Desmos calculates the sum and shows 7/12 rather than 0.583333.
The frac() command works with any arithmetic: frac(7 - 2/5) gives 33/5, and frac(3 * 2/7) gives 6/7. Desmos automatically reduces fractions to lowest terms, so you do not have to simplify by hand.
Converting a decimal result to a fraction after calculating
If you have already typed a calculation and Desmos showed you a decimal, you can convert that result to a fraction without retyping. Look at the answer on the right side of the screen — it appears as a decimal number.
Click directly on that decimal result. A small menu appears above or below it with several icons. Look for the icon that looks like a fraction (usually shown as a horizontal line with a number above and below). Click that icon, and Desmos when ready rewrites the decimal as a fraction.
This method is faster if you are experimenting with different calculations and only occasionally need to see a fraction. You do not have to plan ahead or remember to type frac() — just click the result when you want to switch formats.
When Desmos cannot show a fraction
Some answers cannot be written as fractions because they are irrational numbers — numbers that go on forever without repeating. The square root of 2, pi, and the natural logarithm of 5 are all irrational.
If you type frac(sqrt(2)), Desmos shows the decimal 1.41421356 because no fraction equals the square root of 2 exactly. The same happens with frac(pi) or frac(ln(5)). Desmos recognizes that these cannot be fractions and displays a decimal instead — this is correct behavior, not an error.
Simplifying fractions automatically
Desmos always reduces fractions to their simplest form. If you type frac(10/15), Desmos shows 2/3, not 10/15. If you type frac(100/25), it shows 4, not 4/1.
This automatic simplification saves you a step — you do not have to find the greatest common divisor yourself. If you need to see the unsimplified form for a homework problem or to show your work, you would need to write it out separately or take a screenshot of your calculation before Desmos simplifies it.
Using fractions in multi-step calculations
You can use frac() on part of a larger expression. For example, frac(3/7) + 2 shows 3/7 + 2 as 17/7. You can also nest frac() commands: frac(frac(1/2) / frac(1/3)) calculates 1/2 divided by 1/3 and shows 3/2.
If you are building a complex expression and want fractions at every step, wrap each division or fraction in its own frac() command. This keeps your work readable and shows intermediate results as fractions rather than decimals.
Frequently Asked Questions
Why does Desmos show decimals instead of fractions by default?
Decimals are easier to compare at a glance and work better for irrational numbers like pi or square roots. Desmos assumes most users want decimals unless told otherwise, but the frac() command or the fraction icon let you switch when ready.
Can I make Desmos always show fractions without typing frac() every time?
No, Desmos does not have a global setting to display all results as fractions. You must either type frac() around each expression or click the fraction icon after each result. This is by design — it keeps the default behavior straightforward for most users.
What if my fraction answer is really long, like 123456/789012?
Desmos displays it as-is, even if it is long. If the fraction is that large, you may want to check your calculation — very large fractions sometimes mean a mistake in the original expression. You can also click the decimal icon to see if the decimal form is easier to read.
Does frac() work with negative numbers?
Yes. frac(-5/8) shows -5/8, and frac(5/-8) also shows -5/8. Desmos places the negative sign in the numerator by convention.
Can I copy a fraction result and paste it somewhere else?
Yes. Click on the fraction result, and it highlights. Copy it (Ctrl+C on Windows, Command+C on Mac), then paste it into a document or another calculator. The fraction pastes as text in the format 5/8 or similar, depending on what you are pasting into.