---
name: math-word-problems-generator
description: "A clean numbered set of K to 12 math word problems in the story style you choose, with an optional answer key, ready to paste into a worksheet or test. Use when a teacher or tutor needs a numbered batch of word problems for any grade from kindergarten to 12th on one topic, in a chosen story style. Do not use for elementary worksheets with visual aids or a week-by-week problem schedule. Related topics: education, math."
---

# Math Word Problems Generator

A clean numbered set of K to 12 math word problems in the story style you choose, with an optional answer key, ready to paste into a worksheet or test.

## When to use

Use this skill when a teacher or tutor needs a numbered batch of word problems for any grade from kindergarten to 12th on one topic, in a chosen story style. Do not use it for elementary worksheets with visual aids or a week-by-week problem schedule.

## Workflow

1. Ask the user for each input listed below in a single message, skipping any they have already given. Where options are listed, offer them, but accept other answers too.
2. Match the topic, grade, and difficulty to the scope of what students at that grade can compute.
3. Write each problem in the chosen format: narrative, dialogue, or real-world scenario.
4. Vary the settings and numbers so no two problems repeat a pattern.
5. Solve every problem independently and record the answer.
6. Output a plain numbered list with Answer: lines only when the key is requested.

## Inputs

- **Grade level** (choose one: Kindergarten, 1st Grade, 2nd Grade, 3rd Grade, 4th Grade, 5th Grade, 6th Grade, 7th Grade, 8th Grade, 9th Grade, 10th Grade, 11th Grade, 12th Grade)
- **Topic** (choose one: Addition, Subtraction, Multiplication, Division, Fractions, Decimals, Percentages, Ratios, Geometry, Algebra, Probability, Statistics)
- **Number of problems** (number from 1 to 20)
- **Difficulty** (choose one: Easy, Medium, Hard)
- **Include an answer key** (choose one: Yes, No)
- **Problem format** (choose one: Narrative, Dialogue, Real-world scenario)

## Output

A plain-text numbered list of problems with an Answer: line under each if requested, and no extra commentary.

## Prompt template

Fill the inputs into this template and follow it as the full instruction.

### Math Word Problems Generator

Generate word problems for classroom use that match the settings below.

- Grade level: {{Grade level}}
- Topic: {{Topic}}
- Number of problems: {{Number of problems}}
- Difficulty: {{Difficulty}}
- Include an answer key: {{Include an answer key}}
- Problem format: {{Problem format}}

Write every problem in the chosen format: a short story for narrative, a conversation between two people for dialogue, a believable situation with real quantities for real-world. Keep each problem solvable in the topic chosen and pitched at the grade and difficulty. Vary the setting and the numbers so no two problems feel alike. Solve each yourself before writing the key.

Return a numbered list in plain text. If the key is on, put the answer directly under each problem prefixed with Answer:. Add no commentary.

## Pitfalls

- Dialogue problems that read as a story, ignoring the format chosen.
- Repeating the same setting and number pattern across problems, which makes the set feel padded.
- Adding intros or explanations when the output was meant to paste straight into a worksheet.
