# Checking equivalent math answers in online homework

How to choose between text matching, accepted variants, numeric evaluation, or manual review when grading equivalent fractions and math expressions.

[Read this guide on Reparse](https://reparse.co/guides/grade-equivalent-math-answers-online)


A student who types `4/8` instead of `1/2` found the right quantity, but missed the requested
fraction format. Another student who types `0.5` found the right quantity, but switched from a
fraction to a decimal. Deciding whether to accept these answers depends on whether the question
tests the mathematical value or the specific representation.

Text checking compares the student's entry with a written key. Variant lists let the teacher add
accepted answers. A checker that evaluates expressions can compare the values of fractions and
decimals. An unkeyed question leaves the answer for the teacher to review.

## Worked probability example

The distinction between value and representation is clearest when students work with fractions, such
as in this probability exercise.

> A fair six-sided die is rolled once. What is the probability of rolling a number greater than 4?
> Express the answer as a fraction in simplest form.

Two of the six outcomes (`5` and `6`) exceed 4, which corresponds to `2/6`. Dividing both numbers by
2 yields the simplest form, `1/3`.

A class working through this problem will submit several different answers.

| Student input | Mathematical value | Simplest fraction form | Text matching (`"1/3"`) | Numeric checking (`value == 1/3`) | Variant list (`["1/3", "2/6"]`) |
| :------------ | :----------------- | :--------------------- | :---------------------- | :-------------------------------- | :------------------------------ |
| `1/3`         | Correct (`1/3`)    | Yes                    | Correct                 | Correct                           | Correct                         |
| `2/6`         | Correct (`1/3`)    | No                     | Incorrect               | Correct                           | Correct                         |
| `0.33`        | Approximate        | No                     | Incorrect               | Incorrect                         | Incorrect                       |
| `4/12`        | Correct (`1/3`)    | No                     | Incorrect               | Correct                           | Incorrect                       |
| `2/4`         | Incorrect (`1/2`)  | No                     | Incorrect               | Incorrect                         | Incorrect                       |

With numeric checking, students who submit `2/6` or `4/12` receive full credit. The software only
looks at the numeric value, so it cannot tell whether the student simplified the fraction. If the
goal of the lesson is simplifying fractions, numeric checking awards credit where the skill was not
demonstrated.

Exact text matching marks `2/6` wrong. If the question was an algebra problem where simplifying was
not the point, that strict text check penalizes students who understood the math.

## Where each checking method fits

Matching the check to the learning goal keeps grading fair.

For tasks that assess fraction reduction, polynomial factoring, or scientific notation, the written
form is the main objective. Numeric checking fails on these tasks because it overlooks the structure
of the answer. Exact text matching paired with clear instructions, or reviewing responses directly,
ensures students demonstrate the required form.

For multi-step word problems or geometry, the exact format matters far less. Forcing students to
guess whether the software wants `0.75` or `3/4` creates needless frustration. On these questions,
numeric checking or listing acceptable variants lets equivalent values pass.

If working steps vary widely and answers are hard to predict, unkeyed items avoid false negatives.
The teacher can read the submitted forms and provide direct feedback.

## Blank inputs in Reparse

In [Reparse](/), a blank keyed to the decimal `0.5` also accepts `.5` and `0,5`. A fraction or
expression is checked as text. A blank keyed to `1/3` accepts that fraction, including surrounding
spaces. Accepting `2/6` requires adding it to the key.

Authors who want to accept alternate forms add them directly to the blank:

```markdown
Calculate the slope: :reparse-blank[1/2]{also="[2/4, 0.5]"}
```

Leaving a blank without a key (`:reparse-blank`) sends the item to the review screen. Reparse groups
identical student responses into cards. A teacher can write one feedback comment on simplifying
`2/6` to reach every student who submitted that answer. The guide to
[whole-class feedback for homework](/guides/whole-class-feedback-for-homework) explains how this
review workflow operates.

## Writing prompts that avoid formatting errors

Clear prompts prevent grading issues before they start. If an automated question requires a specific
representation, a prompt with formatting instructions keeps text checking reliable.

- An ambiguous prompt asks, "What is the probability of rolling an even number?"
- A clear prompt adds the required form, "What is the probability of rolling an even number? Give
  your answer as a simplified fraction, such as 2/3."
- A clear prompt specifies rounding, "Calculate the speed in meters per second. Round your answer to
  one decimal place."

A clear prompt helps students focus on solving the mathematics instead of trying to guess the
software's formatting rules.
