Add, subtract, multiply, divide, take powers and averages, and find modulo remainders for two numbers, with the working shown step by step.
Arithmetic Calculator
All seven core operations on two numbers — including the modulo remainder most calculators hide — with working shown.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Arithmetic Result
Calculated locally in your browser
—
Name
—
First number (A)
—
Second number (B)
—
Operation
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
An arithmetic calculator performs the core operations on two numbers: addition, subtraction, multiplication, division, powers, averages and modulo. Modulo gives the remainder, so 17 mod 5 equals 2 because five fits into seventeen three times leaving two. Division by zero is undefined and returns an error, never infinity.
- Modulo: A mod B is the remainder of A / B (17 mod 5 = 2)
- Average of two numbers = (A + B) / 2
- A negative exponent is a reciprocal: 2^-2 = 0.25
What each operation answers
Reference values for this calculator.
| Operation | Question it answers | Example |
|---|---|---|
| Modulo | What is left over after equal sharing? | 17 mod 5 = 2 |
| Power | Repeated multiplication | 2^10 = 1,024 |
| Average | The midpoint / fair-share value | avg(7, 13) = 10 |
| Divide | How many B fit in A (with decimals) | 17 / 5 = 3.4 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement over a plain four-function tool: modulo (remainder) and average are first-class operations with the division identity shown in the steps (A = quotient x B + remainder), which is what programmers, quilters and tile-setters actually reach for.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Leftovers after packing
A = 17, B = 5, operation modulo
| Calculation | Steps |
|---|---|
| 17 / 5 = 3 remainder: 3 x 5 = 15; 17 - 15 = 2. | 17 mod 5 = 2 left over. |
Result
Example 2
Repeated doubling
A = 2, B = 10, operation power
| Calculation | Steps |
|---|---|
| 2^10 = 2x2x2x2x2x2x2x2x2x2 = 1,024. | 2^10 = 1,024 — the kilobyte of computing fame. |
Result
Example 3
Midpoint of two scores
A = 7, B = 13, operation average
| Calculation | Steps |
|---|---|
| (7 + 13) / 2 = 20 / 2 = 10. | Average = 10, exactly halfway between the two scores. |
Result
How to use this calculator
Step 1
Enter the first number as A and the second as B — order matters for subtract, divide, power and modulo.
Step 2
Choose the operation; pick Remainder (modulo) when you need what is left after equal groups.
Step 3
Read the headline result and the division identity in the steps if you used modulo.
Step 4
Check the detail panel for the sum and product of the same pair without re-typing.
Step 5
Swap A and B and re-run if you need the reverse subtraction or division.
Frequently asked questions
What does modulo mean in plain language?
Modulo is the remainder after division. 17 mod 5 is 2 because 5 goes into 17 three times (15) with 2 left over. It answers leftover questions: items that do not fill a box, minutes past the hour, and days of the week after a number of days.
Why is dividing by zero an error rather than infinity?
Division by zero is undefined in arithmetic: there is no number that multiplied by 0 gives back a non-zero dividend. The calculator says so plainly instead of printing Infinity, which would silently corrupt any total built on it.
How is average different from just adding?
The average (arithmetic mean of two numbers) is (A + B) / 2 — the midpoint that both numbers would become if their total were shared equally. For 7 and 13 the average is 10: 7 gains 3, 13 gives up 3.
What does A ^ B do with a fractional or negative B?
A negative exponent gives a reciprocal: 2^-2 = 1/4 = 0.25. A fractional exponent is a root: 9^0.5 = 3. Both work here, as long as the result is a real number (a negative base with a fractional exponent is not).
Are results rounded?
Display is rounded to 6 decimal places, but the underlying value keeps full double precision. For money, round the final answer to 2 decimals yourself — intermediate rounding is how invoices drift by a cent.
About this calculator
The Arithmetic Calculator evaluates one core operation — add, subtract, multiply, divide, power, average or modulo (remainder) — on two numbers, and shows the working, including the full division identity for remainders. It is the honest, titled version of the two-number tool: arithmetic is exactly what it promises.
Four of the operations need no introduction, but three earn their place. Modulo is the remainder operation: it discards the quotient and keeps what is left, which is the answer to every 'how many are left over' question — sweets that do not fill a bag, seats that do not fill a row, minutes past a whole hour on a clock face.
Power is repeated multiplication with a useful twist: negative exponents produce reciprocals and fractional exponents produce roots, so one operation quietly covers squares, cubes, square roots and 'one over' values. Average, for two numbers, is their midpoint — the value both would hold if their sum were redistributed equally — which is why it appears everywhere from grade midpoints to splitting a journey at the halfway point.
The calculator refuses two things honestly: division or modulo by zero, which are undefined rather than infinite, and results that overflow double-precision numbers. An error message protects any total built on top of the result far better than a plausible-looking wrong number would.
Use it for quick checks that deserve shown working: leftovers after packing or sharing (modulo), repeated multiplication (powers), midpoints and fair shares (average), and verifying a hand calculation before it goes into homework, an invoice or a cutting list.
How to calculate it yourself
Step 1
Decide which question you are asking: total (add), difference (subtract), scaling (multiply), sharing rate (divide), repeated growth (power), midpoint (average) or leftover (modulo).
Step 2
For modulo by hand: divide, take the whole-number quotient, multiply it by the divisor, and subtract from the starting number.
Step 3
For average by hand: add the two numbers and halve the sum.
Step 4
sanity-check with the identity A = quotient x B + remainder whenever you divide.
Real-life examples
Tiles that do not fill the last row
A tiler has 137 tiles and each full row of a splashback takes 12 tiles. Full rows matter for ordering the patterned feature tiles separately.
137 mod 12: 11 x 12 = 132; 137 - 132 = 5. So 11 full rows use 132 tiles and the cut row needs 5 tiles' worth of material.
11 full rows plus 5 tiles left for the final cut row.
Splitting a drive at the halfway town
Two drivers share a 286-mile trip and want to swap at the midpoint town rather than by the clock.
Average of 0 and 286 = (0 + 286) / 2 = 143 miles. The swap town should be as close to mile 143 as the map allows.
Swap drivers at about mile 143.
Ideas & use cases
- Clock arithmetic: minutes mod 60 turns any minute count into 'hours plus leftover minutes' — 200 mod 60 = 20, so 200 minutes is 3h 20m.
- Even-split checks: if a total mod the group size is not zero, the split cannot be equal — find out before the argument, not during it.
- Growth intuition: run powers of 1.05 (5% growth) for 10, 20 and 30 periods to feel why compound growth accelerates.
Limitations & sources
- Two operands and one operation at a time — no multi-step expressions, brackets or fractions (use the Scientific or Fraction Calculator for those). Results use double-precision floating point.
Sources: Standard arithmetic definitions; modulo/division identity per Knuth, The Art of Computer Programming, and NIST Digital Library of Mathematical Functions conventions
