Design Validation

What are the 5 validation checks?

The 5 validation checks are presence, range, type, format and length. See what each one does, with examples, and why they matter in product design.

On this page
  1. The short answer
  2. The five checks explained
  3. Other checks you may see
  4. Validation vs. verification of data
  5. Why this matters to product designers
  6. Not to be confused with design validation

The short answer

The five validation checks most often taught are:

  1. Presence check: is there a value at all?
  2. Range check: is the value between allowed limits?
  3. Type check: is it the right kind of data, such as a number rather than text?
  4. Format check: does it follow the required pattern, such as a date layout?
  5. Length check: does it have an allowed number of characters?

These are data validation checks. They come from computing and information systems, where they’re used to stop obviously wrong data from being entered into a system. They don’t prove data is correct, only that it is reasonable.

The five checks explained

Presence check

A presence check makes sure a required field isn’t left blank. A customer order form might refuse to submit without a delivery address. In a product spec database, a part record might require a material field before it can be saved.

Range check

A range check confirms a value falls between a minimum and a maximum. A day of the month should be between 1 and 31. In a product context, a wall thickness field for an injection-molded part might be limited to a range the molding process can actually achieve.

Type check

A type check confirms the data is the right type: whole numbers, decimals, text, dates or true/false values. A quantity field should reject “ten” or “10a.” This is one of the simplest checks but catches a surprising number of errors.

Format check

A format check confirms data matches a set pattern. Common examples are dates (such as YYYY-MM-DD), postal codes and part numbers with a fixed structure like “AB-1234.” Programmers often use regular expressions to define these patterns.

Length check

A length check limits how many characters a value can have. Passwords commonly have a minimum length, and many database fields have a maximum. A part description field might be capped so it fits on a label or drawing title block.

Other checks you may see

Some courses and textbooks list more than five. Common extras include:

  • Lookup check: the value must come from an approved list, such as a drop-down of standard materials
  • Check digit: an extra digit calculated from the others, used in barcodes and ISBNs to catch typing errors
  • Consistency check: related fields must make sense together, such as an end date not falling before a start date

A single field often needs several checks at once. A password, for instance, might need presence, length and character-type checks together.

Validation vs. verification of data

In data handling, validation checks whether data is sensible and follows the rules. Verification checks whether the data was entered or transferred accurately, for example by asking a user to type an email address twice, or by comparing an entry against the original document.

A date of birth of 1990-02-14 passes every validation check. Whether it’s the person’s actual date of birth is a verification question.

Why this matters to product designers

Data validation might seem like a programmer’s topic, but it shows up in product design more often than you’d think:

  • Product interfaces: anything with a screen, app or setup flow needs input rules. Designing clear error messages for failed checks is part of making a product usable.
  • Specification documents and databases: part numbers, materials and dimensions in a bill of materials benefit from the same kinds of checks to prevent costly mistakes.
  • CAD parameter tables: in parametric models, setting sensible limits on driving dimensions works like a range check and prevents geometry from breaking.
  • Quality forms: inspection checklists and test records often use presence and range checks so testers can’t skip fields or log impossible values. That overlaps with the idea behind QA checklists.

Not to be confused with design validation

If you came here from a product design or engineering context, you might be thinking of design validation, which is something quite different. Design validation confirms that a finished product meets users’ needs in real use, through testing like usability studies and field trials. It isn’t a fixed set of five checks. For that topic, see the design validation process, which walks through the steps from planning to sign-off.

The complete guide to design validation

The Design Validation Process
Read the guide

Keep exploring

Guides from other topics

All topics →