How does the fraction calculator work?
We store the numerator and denominator as whole numbers of arbitrary precision. After each operation, we simplify the fraction by the greatest common divisor and keep the denominator positive. This way, the result of 1/2 + 1/3 is exactly 5/6, not a rounded number that we then try to turn back into a fraction.
Addition: a/b + c/d = (a × d + c × b)/(b × d), then simplify. Division: a/b ÷ c/d = a/b × d/c, provided the second fraction is not zero.
Step-by-step example
- Enter A = 1/2 and B = 1/3, and choose addition.
- The lowest common denominator is 6.
- Write 1/2 = 3/6 and 1/3 = 2/6.
- Add the numerators: 3/6 + 2/6 = 5/6. The result is already in its simplest form.
How to read the result and choose the data
You can enter mixed numbers, for example 2 1/2. This means 2+1/2; a minus sign before a mixed number applies to the whole value. Do not join two numbers with just a space unless they form a mixed number. Write multiplication with *, × or ·.
The slash writes a fraction, and the ÷ sign divides whole fractions. For a complex numerator or denominator, use brackets, e.g. (1+2)/(3+4). The parser also supports whole-number powers from −20 to 20 and square roots that have an exact rational result. √(4/9) gives 2/3, while √2 needs a different presentation from an exact fraction.
The coloured bars share the same scale, which helps you compare the two numbers. For a large common denominator, we show a limited preview of 24 parts. The bars cover the range from zero to one whole; they do not replace the numerical result for negative values or values greater than one. The decimal approximation is just an additional reading.
What do the fields mean?
- Fraction or expression A
- The first fraction, mixed number or expression, e.g. 1/2 or 2 1/2. Up to 240 characters.
- Operation
- Addition, subtraction, multiplication, division or an exact comparison of the two values.
- Fraction or expression B
- The second fraction or expression. For division, its value must not be zero.
Sources and how up to date the data is
Checked on 31 October 2026. The formulas and function domains were compared with the Procentownik 1.10.24 code, and the reference results were run in Dart. This module does not download current rates, exchange rates or user data from a server. The check date refers to the implementation and tests; it does not indicate how long a tax rate or legal standard applies.
Frequently asked questions
Why can’t you divide by 0/3?
The fraction 0/3 equals zero. Dividing requires inverting the divisor, which would lead to a denominator of zero. The form shows an error and removes the previous result, rather than leaving a misleading calculation.
Can I use a decimal point or comma?
Yes. The value 0.5 (or 0,5) is read exactly as 1/2. In an expression, we do not treat the comma as a separator between function arguments. Each field contains one number or one supported expression.
Why does the square root of 2 give no result?
The fractions module keeps rational precision. √2 is not a common fraction with a whole-number numerator and denominator. If you need an approximation, use the scientific calculator; here, we tell you about the limit of the scope.
Does a comparison require rounding?
No. We compare exact cross products with positive denominators. That is why 1/2 and 2/4 are equal, regardless of the decimal format. The coloured preview helps with interpretation, but does not decide the result.
Does the data I enter reach the studio?
Your browser does the calculations. The form does not send the values you enter and does not require an account. The “Copy result” button uses the clipboard only when you click it. You can also select the result and copy it by hand. Refreshing the page restores the sample data; it is not a substitute for keeping your own notes.
Is this tool also in Procentownik?
Yes. It corresponds to the app module described below. The web version is for calculations in your browser, and the app has its own phone interface. We do not automatically transfer results between the website and the app. Choose whichever version suits your task better.

