mod
Modulo Calculator
The remainder of a division, both as most programming languages give it and as mathematicians define it.
Result…
How it's calculated
a mod n = a − n × q, q chosen so that 0 ≤ r < |n| (Euclidean) For n > 0: q = ⌊a / n⌋
For negative numbers, languages differ: JavaScript and C keep the sign of a (−7 % 3 = −1), while mathematics gives a result between 0 and |n| − 1 (−7 mod 3 = 2).
Your numbers, step by step
More in Math & Algebra
%PercentageFind a percentage of a number, what percent one number is of another, or the percentage change between two.Top 100 · #1Open →sinScientificA full scientific calculator: trigonometry, logs, powers, roots and factorials, typed or tapped.Top 100 · #8Open →½FractionAdd, subtract, multiply and divide fractions and mixed numbers, simplified.Top 100 · #9Open →√Square RootThe square root of a number, simplified radical form, and any nth root.Top 100 · #46Open →x̄AverageThe mean, median, mode and range of a list of numbers.Top 100 · #47Open →a:bRatioSimplify a ratio, scale it, or solve A : B = C : D for the missing value.Top 100 · #48Open →