Course contentsShow
← Software Engineering
Lesson 182 of 1,9335. Software Design PrinciplesFree lesson

The Relationship Between Coupling and Cohesion

Understand how low coupling and high cohesion work together to create well-designed, maintainable software modules.

The Relationship Between Coupling and Cohesion

You'll learn: How low coupling and high cohesion work as complementary principles to create maintainable, well-organized software.

Two Sides of the Same Coin

Coupling and cohesion aren't independent ideas—they're deeply connected design forces that pull in opposite directions, and managing their balance is key to good software design.

Low coupling means your modules depend on each other as little as possible. High cohesion means everything inside a module belongs together and serves a unified purpose. When you have both, you get modules that are self-contained, focused, and easy to work with.

Why They Work Together

Think of a well-organized kitchen drawer: all your cooking utensils are together (high cohesion), and you don't need to open the bathroom cabinet to find your spatula (low coupling). The drawer has a clear purpose, and it doesn't need items from other drawers to be useful.

When you improve cohesion by grouping related functionality together, you often reduce coupling as a side effect—because tightly focused modules need less from the outside world. Conversely, reducing coupling forces you to think about what truly belongs together, which improves cohesion.

The Design Sweet Spot

The goal is maximizing cohesion within modules while minimizing coupling between them. Modules should be:

  • Internally strong (high cohesion) - everything inside works toward the same goal
  • Externally independent (low coupling) - minimal reliance on other modules

This combination makes changes safer and easier. You can modify one cohesive module without ripple effects across loosely coupled boundaries.

Key Takeaway: Low coupling and high cohesion are complementary principles—pursuing both together creates modules that are focused, independent, and maintainable.