Math Problem Generator

Pick a topic and difficulty to get a fresh set of math problems with an answer key. Print it as a worksheet or regenerate the same set from its seed.

Free · No sign-up · Answer key included · Runs in your browser

Difficulty

ax + b = c, brackets and variables on both sides.

The same topic, difficulty and seed always give the same problems, so you can share the seed or regenerate a set later. Generated in your browser; nothing is uploaded.

Two-step equations worksheet

Medium · 10 problems · seed 2026

  1. 1.

    Solve for x.

    x/3 − 4 = −7
  2. 2.

    Solve for x.

    7x + 12 = −30
  3. 3.

    Solve for x.

    −4x − 13 = −29
  4. 4.

    Solve for x.

    2x − 14 = −34
  5. 5.

    Solve for x.

    −8x − 19 = 53
  6. 6.

    Solve for x.

    −7x + 5 = −9
  7. 7.

    Solve for x.

    −7x + 4 = −17
  8. 8.

    Solve for x.

    x/5 + 12 = 18
  9. 9.

    Solve for x.

    9x + 9 = 90
  10. 10.

    Solve for x.

    6x + 15 = −21

Answer key

  1. 1.x = −9
  2. 2.x = −6
  3. 3.x = 4
  4. 4.x = −10
  5. 5.x = −9
  6. 6.x = 2
  7. 7.x = 3
  8. 8.x = 30
  9. 9.x = 9
  10. 10.x = −6

Step-by-step solutions

Every problem in this set worked out line by line, the way you would show it on the board, plus a worksheet PDF with the solutions included.

Step-by-step solutions

Create a free Lorea account to see the worked solution for every problem. Your set stays on this page.

Free. Your results stay on this page.

The math problem generator in short

Lorea's free math problem generator makes random practice problems in your browser for addition and subtraction, multiplication and division, fractions, decimals and percents, order of operations, one- and two-step equations, systems of two equations and quadratics. Choose a topic, easy, medium or hard, 1 to 50 problems and a seed; the same seed always gives the same set. Every set comes with an answer key and a printable worksheet PDF, with no account. A free Lorea account adds step-by-step worked solutions for every problem.

Price:
Free problems, answer key and worksheet PDF
Topics:
9 topics plus mixed review
Levels:
Easy, medium, hard
Set size:
1 to 50 problems
Repeatable:
Same seed, same problems
Free account adds:
Step-by-step solutions

Topics in the Math Generator

TopicWhat the problems look like
Addition and subtractionWhole numbers with carrying and borrowing; negative numbers on hard.
Multiplication and divisionTimes tables, multi-digit multiplication and long division with no remainder.
FractionsAdding and subtracting with like and unlike denominators; multiplying and dividing on hard.
Decimals and percentsDecimal operations, percent of a number, conversions and percent change.
Order of operationsPEMDAS / BODMAS expressions with whole-number answers.
One-step equationsSolve for x with one inverse operation.
Two-step equationsax + b = c, brackets and variables on both sides.
Systems of two equationsTwo linear equations with whole-number solutions, by elimination.
Quadratic equationsSolve by factoring; every equation has integer roots.
Mixed reviewA different topic for each problem.

Easy keeps numbers small and positive. Medium adds bigger numbers, unlike denominators and negative numbers in equations. Hard adds negative numbers to arithmetic, multiplying and dividing fractions, percent change, brackets with exponents, variables on both sides and quadratics whose first coefficient is not 1.

Math Problem Maker Worked Examples

Choose the same topic, difficulty and seed in the tool and you get these problems first, with the same answers.

Example 1: two-step equations, medium, seed 2026

  1. 1.x/3 − 4 = −7x = −9
  2. 2.7x + 12 = −30x = −6
  3. 3.−4x − 13 = −29x = 4
  4. 4.2x − 14 = −34x = −10

Worked solution for problem 1: x/3 − 4 = −7

  1. Add 4 to both sidesx/3 = −3
  2. Multiply both sides by 3x/3 × 3 = −3 × 3 x = −9
  3. Check−9 ÷ 3 − 4 = −7

Answer: x = −9

Example 2: fractions, medium, seed 2026

  1. 1.3/8 + 5/761/56
  2. 2.10/11 − 2/748/77
  3. 3.1/6 + 2/719/42
  4. 4.1/3 + 1/1013/30

Worked solution for problem 1: 3/8 + 5/7

  1. Find a common denominator. The least common multiple of 8 and 7 is 56.
  2. Rewrite both fractions with that denominator3/8 = 21/56 5/7 = 40/56
  3. Add the numerators21/56 + 40/56 = 61/56
  4. As a mixed number: 61 ÷ 56 = 1 remainder 5, so 61/56 = 1 5/56

Answer: 61/56 (1 5/56)

Example 3: order of operations, hard, seed 2026

  1. 1.9² − (8 − 3 + 6)70
  2. 2.(12 ÷ 3)² − 6 + 1424
  3. 3.12 × 8 + (5 − 5)²96
  4. 4.10² × (2 × 6 ÷ 3)400

Worked solution for problem 1: 9² − (8 − 3 + 6)

  1. Inside the brackets. Subtract: 8 − 3 = 59² − (8 − 3 + 6) = 9² − (5 + 6)
  2. Inside the brackets. Add: 5 + 6 = 119² − (5 + 6) = 9² − 11
  3. Exponent: 9² = 819² − 11 = 81 − 11
  4. Subtract: 81 − 11 = 7081 − 11 = 70

Answer: 70

How the Random Math Problem Generator Works

Each set comes from a seeded random number generator. The seed, topic and difficulty fix every number that is drawn, so a set can be rebuilt exactly from three settings. Change the seed and you get a new set at the same level; it is an easy way to make version A and version B of the same quiz.

Problems are built backwards from their answers. For an equation, the generator picks the solution first and then the coefficients, so x is always a whole number. For order of operations, it only keeps expressions where every division comes out even and no step goes below zero. For quadratics, it picks two integer roots and multiplies out the factors.

Automated tests check the generator over thousands of sets for every topic and level. Each answer is substituted back into its problem, and each line of each worked solution is checked to be true for that answer.

Printable Math Worksheets with an Answer Key

The printable worksheet is laid out in two columns with room to show work, a name and date line, and the answer key on a separate page, so you can print the problems for the class and keep the key. With a free account, a second PDF includes the full worked solution for every problem, which works well as a self-check sheet or for a substitute teacher.

For worksheets on a reading or a topic outside math, the free worksheet generator turns a text into a printable fill-in-the-blank worksheet. To draft a class test with an answer key from the unit you taught, use the test maker for teachers.

Frequently Asked Questions

Is the math problem generator free?

Yes. Generating problems, the answer key, copying and the printable worksheet PDF are free with no account and no limit. A free Lorea account also unlocks step-by-step worked solutions for every problem, plus a worksheet PDF with the solutions included.

What topics does the math problem generator cover?

Addition and subtraction, multiplication and division, fractions, decimals and percents, order of operations, one-step equations, two-step equations, systems of two linear equations and quadratic equations solved by factoring, plus a mixed review that draws from all of them. Each topic has easy, medium and hard levels.

Are the answers correct?

The problems are built from their answers, so every equation has a whole-number solution and every quadratic factors over the integers. The generator is also checked by automated tests: across thousands of sets, each answer is substituted back into its problem, and every line of every worked solution is checked to be true.

What is the seed for?

The seed makes a set repeatable. The same topic, difficulty and seed always give the same problems in the same order, so you can regenerate a worksheet later, give a class the seed for practice, or make a second version by changing one digit. The shuffle button picks a new random seed.

Can I print the problems as a worksheet?

Yes. Printable worksheet (PDF) saves a two-column worksheet with space to work, a name and date line, and the answer key on its own page. With a free account you can also download a version with the worked solutions.

Does the random math problem generator use AI?

No. Problems come from a seeded random number generator and fixed rules for each topic, all in your browser. Nothing is sent to a server, so it also works on slow connections once the page has loaded.

What grade level is each difficulty?

Roughly: easy addition, subtraction, times tables and like-denominator fractions suit grades 2–5; medium multi-digit work, unlike denominators, decimals and one- and two-step equations suit grades 5–8; hard negatives, percent change, systems and quadratics suit grades 7–10 and Algebra 1. Check the set against your own curriculum.

How many problems can I make at once?

From 1 to 50 per set. A longer set starts with the same problems as a shorter one with the same seed, so you can add problems without losing the ones you already have.