Skip to main content
Calculator Fractions

Fraction Modulo Calculator

Calculate fractional remainders.

Powers & Roots

Use the Fraction Modulo Calculator

Result
—

How Fraction Modulo Calculator Works?

The Fraction Modulo Calculator works in 5 steps: it reads the dividend and the divisor fractions, divides them, takes the floor of the quotient, and returns the mixed number whose fractional part gives the modulo. The modulo equals the fractional part times the divisor.

  1. Enter the dividend

    Type the first fraction, the value to divide. The example uses 23/6.

  2. Enter the divisor

    Type the second fraction, the modulus, and keep the ÷ operator selected. The example uses 4/5.

  3. Divide the fractions

    The calculator computes 23/6 × 5/4 = 115/24, shown as the mixed number 4 19/24 and the decimal 4.791667.

  4. Take the floor

    The whole part of the mixed number is the floor of the quotient for positive inputs: 4.

  5. Compute the modulo

    Multiply the fractional part by the divisor: 19/24 × 4/5 = 19/30. So 23/6 mod 4/5 = 19/30.

Fraction Modulo Calculator Formula

The fraction modulo formula is a mod b = a − b × ⌊a/b⌋, where ⌊ ⌋ is the floor function. The result always has the same sign as the divisor b.

Floored modulo

a mod b = a − b·⌊a ÷ b⌋

Subtract the largest whole multiple of b that fits in a. 7/2 mod 3/4 = 7/2 − 4 × 3/4 = 1/2.

Fractional part method

a mod b = {a ÷ b} × b

Multiply the fractional part {a ÷ b} of the quotient by the divisor. 9/4 ÷ 2/3 = 3 3/8, so 9/4 mod 2/3 = 3/8 × 2/3 = 1/4.

Common denominator form

(p/d) mod (q/d) = (p mod q)/d

Rewrite both fractions over a common denominator d, then take the modulo of the numerators. 11/6 mod 1/4 = 22/12 mod 3/12 = 1/12.

Worked example: 23/6 mod 4/5

  1. Divide: 23/6 ÷ 4/5 = 23/6 × 5/4 = 115/24.
  2. Write the quotient as a mixed number: 115/24 = 4 19/24.
  3. Take the floor: ⌊115/24⌋ = 4.
  4. Subtract the whole multiples: 23/6 − 4 × 4/5 = 115/30 − 96/30 = 19/30.
  5. Check: 19/24 × 4/5 = 76/120 = 19/30 = 0.6333.

Fraction Modulo Calculator Conversion Table

The fraction modulo conversion table lists 13 modulo operations with fractions, the quotient, the floor, and the modulo result.

ExpressionQuotient a ÷ bFloora mod bDecimal
7/2 mod 3/414/341/20.5
5/3 mod 1/210/331/60.1667
9/4 mod 2/327/831/40.25
11/6 mod 1/422/371/120.0833
5/2 mod 5/63300
7/8 mod 1/321/825/240.2083
13/5 mod 1/226/551/100.1
10/3 mod 3/220/921/30.3333
15/4 mod 5/39/425/120.4167
17/6 mod 3/434/937/120.5833
3 mod 2/515/271/50.2
23/6 mod 4/5115/24419/300.6333
-7/4 mod 1/2-7/2-41/40.25

What is Fraction Modulo Calculator?

A Fraction Modulo Calculator is a tool that finds the remainder left after removing the largest whole number of divisor fractions from a dividend fraction. The modulo operation extends a mod b from integers to rational numbers.

The modulo result always falls between 0 and the divisor. For 10/3 mod 3/2, the divisor 3/2 fits into 10/3 twice, using 3, and the remainder is 1/3. A result of 0 means the divisor divides the dividend exactly, as in 5/2 mod 5/6.

Negative inputs follow 2 conventions. Floored modulo, used in Python and in mathematics, gives -7/4 mod 1/2 = 1/4. Truncated modulo, used by the % operator in JavaScript and C, gives -1/4. The calculator shows a truncated mixed number (-3 1/2) for negative quotients, so apply the floor by hand, if the dividend is negative.

What are the uses of Fraction Modulo Calculator?

The Fraction Modulo Calculator has 6 main uses, including periodic angle reduction, programming checks, and music rhythm.

  • Angle reduction

    Trigonometry students reduce angles written as fractions of a turn, for example 9/4 turns mod 1 turn = 1/4 turn (90°).

  • Programming checks

    Developers verify the output of modulo operations on rational types, such as Fraction(23, 6) % Fraction(4, 5) in Python.

  • Music rhythm

    Composers find where a note falls in a bar. A note at beat 15/4 in a bar of 5/3 beats falls 5/12 of a beat into the third bar.

  • Repeating patterns

    Designers place tiles of width 3/4 ft along a 17/6 ft wall and find a leftover strip of 7/12 ft (17.78 cm).

  • Number theory practice

    Math learners extend integer congruence ideas to rational numbers and test the floor rule.

  • Time cycles

    Planners find the leftover time when a 3/2 h cycle repeats inside 10/3 h: 1/3 h, or 20 minutes.

Related Powers & Roots Tools

View all 270 tools →