Fraction Calculator
Operate on fractions and mixed numbers, simplify, or turn a decimal into a reduced fraction. Denominator zero shows a clear error.
Fractions — concepts, operations, and everyday use
A fraction expresses a part of a whole: the numerator counts pieces and the denominator names the size of each piece. When denominators match, addition and subtraction are intuitive — you are adding or removing the same kind of slice. When denominators differ, you first rewrite every term with a common denominator (often the product of the two denominators, or the least common multiple for smaller numbers). That step is not “making the problem harder”; it is aligning units so you are not accidentally adding apples to oranges.
Multiplication of fractions is simpler in notation: multiply numerators for the new top, denominators for the new bottom, then simplify. Intuitively, “a half of a third” is a sixth — multiplication scales one fraction by another. Division flips the second fraction (the divisor) and multiplies: dividing by a fraction is the same as multiplying by its reciprocal, which matches how many “chunks” fit into another quantity. Our calculator follows these rules and reduces results with the GCD, the largest integer that divides both numerator and denominator. That is how we obtain lowest terms.
Proper fractions stay below one whole; improper fractions have a larger top than bottom and represent a value greater than one; mixed numbers combine a whole part with a proper fraction. Internally, mixed numbers become improper fractions for calculation, then you can read the result back as a mixed number when it helps. Negative fractions follow the same sign rules as integers — a negative in either the numerator or the denominator flips the sign; having both negative makes a positive value.
Why GCD matters: The Euclidean algorithm repeatedly replaces the larger number by the remainder until one number hits zero; the last non-zero value is the GCD. Dividing both parts of a fraction by the GCD guarantees the fraction cannot be reduced further. Showing these steps is standard in classrooms because it reinforces number sense — you see why 12/18 becomes 2/3, not just the final answer.
Decimal to fraction on a computer multiplies by a power of ten to clear places past the decimal, then simplifies. Very long decimals may not have a tidy fractional form in floating-point arithmetic; we use a rational approximation suitable for homework-style problems. For exact engineering tolerances, symbolic math libraries are preferable — this page targets study, cooking, and quick checks.
Real-world uses include recipes (half of ¾ cup), music (time signatures and note lengths), construction (measuring boards in inches and fractions), and probability (chances expressed as favorable over total outcomes). Common mistakes include adding numerators without fixing denominators, forgetting to invert when dividing, and canceling terms across a plus sign (only factors common to an entire numerator and denominator may be divided out). Checking your answer by converting to a decimal is a good habit.
Pair this tool with our Percentage calculator when you move between fractional and percent language, and with the Scientific calculator for logs, powers, and trig where fractions appear inside larger expressions.
FAQ
Why does the calculator say division by zero?
A denominator of zero is undefined — there is no fraction with zero as the bottom number. Check both fractions before dividing; dividing by a fraction whose numerator is zero also triggers that message.
Can I enter only a whole number?
Yes — leave the fractional part as zero or use the whole-number box with numerator zero and denominator one.