Equivalence partitioning

Equivalence partitioning image

What is equivalence partitioning?

Equivalence partitioning divides input data into groups or "partitions" that should behave the same way. This technique lets testers work smarter, not harder—instead of testing every possible input, you pick representative values from each partition to maintain thorough coverage while eliminating redundant tests.

Do you have any examples of equivalence partitioning?

A login form requires passwords between 8-16 characters. You'd create three partitions:

  1. Valid passwords (8-16 characters): Test with a 10-character password
  2. Too-short passwords (under 8 characters): Test with a 7-character password
  3. Too-long passwords (over 16 characters): Test with a 17-character password

By testing just one value from each partition, you've effectively covered the entire range of possible inputs.

Why is equivalence partitioning important?

Equivalence partitioning saves you time and resources by reducing test cases while maintaining comprehensive coverage. 

It helps you focus on meaningful scenarios rather than exhausting every possibility. Smart testers use this approach to validate different input categories efficiently while avoiding repetitive tests that add little value.

What are the challenges of equivalence partitioning?

The main challenge is correctly identifying partitions—some inputs might behave unexpectedly and not fit neatly into your groups. If you make partitions too broad, you risk missing critical edge cases. That's why experienced testers combine equivalence partitioning with boundary value testing to verify behavior at partition edges where defects often hide.
Explore MoT
Don’t Be Left Behind: Close the Gap Between Test and Delivery image
Wed, 12 Nov
Align testing and delivery to reduce lead time and improve deployment frequency.
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
This Week in Quality image
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.