Math Problem Generator
Generate printable math worksheets with addition, subtraction, multiplication, division, and an answer key.
Written by Golam Rabbani, Founder & Lead Engineer
How to use this math problem generator
- Choose a difficulty: Easy (1–10), Medium (2–25), or Hard (5–99).
- Tick the operators you want to mix: +, −, ×, ÷.
- Set how many problems to generate (1 to 50).
- Tick Include answer key if you want answers shown inline.
- Press Generate worksheet to see the problems.
About this math problem generator
The math problem generator builds short arithmetic worksheets by sampling operands uniformly from a difficulty-tuned range and the operator from your tick list. Subtraction never produces negative answers — the larger operand goes first — and division is built backwards from a clean divisor × quotient so the answer is always a whole number. That means a student never hits a "trick" problem they were not expecting at that level.
All random draws use crypto.getRandomValues with rejection sampling for unbiased operand selection. With the answer key on, each line shows the full equation (e.g. 7 + 8 = 15); with the key off it shows the problem with a question mark (7 + 8 = ?) so you can print and hand it out as a quiz.
For example, Difficulty Easy, Operators [+, −, ×], Count 5, answer key off might give: 1. 4 + 9 = ? · 2. 7 − 3 = ? · 3. 6 × 2 = ? · 4. 8 + 5 = ? · 5. 9 − 2 = ?. The same input with answer key on shows 1. 4 + 9 = 13 · 2. 7 − 3 = 4 · 3. 6 × 2 = 12 · 4. 8 + 5 = 13 · 5. 9 − 2 = 7.
FAQ
- Why are there no negative answers in subtraction?
- For practice worksheets, keeping subtraction non-negative matches how the operation is first taught. The tool orders the two operands so the larger one comes first.
- Does division always give a whole number?
- Yes. The tool picks the divisor and quotient first and then multiplies them to get the dividend, guaranteeing a clean integer result. No remainders.
- How big are the numbers at each difficulty?
- Easy uses 1–10, Medium 2–25, Hard 5–99. Multiplication caps the second operand at 12 to keep the products tractable on paper.
- Can I make a mixed-operator worksheet?
- Yes. Tick every operator you want and the tool picks among them uniformly for each problem.
- Will I get duplicate problems?
- Possibly, especially on Easy with a long worksheet — there are only so many combinations. Run again or raise difficulty to reduce duplicates.