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.
RiskStorming image
An educational tool to explore Risk Analysis and Quality Strategy building with the whole team.
Explore MoT
TestBash Brighton 2025 image
Wed, 1 Oct
On the 1st & 2nd of October, 2025 we'll be back to Brighton for another TestBash: the largest software testing conference in the UK
MoT Foundation Certificate in Test Automation
Unlock the essential skills to transition into Test Automation through interactive, community-driven learning, backed by industry expertise
This Week in Testing
Debrief the week in Testing 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.