# Coupling

> How much one part of a program leans on another.

**Field:** Software Development  
**Category:** Architecture  
**Also known as:** Loose Coupling, Tight Coupling, Decoupling

## Think of it like

Think of it like toys joined with glue or with clips. Clipped toys come apart easily.

## Definition

Coupling is how much one part of a program depends on another. Tight coupling means a change in one part forces changes in the other. Loose coupling means parts only know a little about each other, often through a small interface. Loosely coupled parts can be changed, tested and replaced on their own. Good design aims for loose coupling between parts.

## Example

Jack's checkout code reads the payment firm's data straight from its API. When the firm changes its API, he must fix checkout too. That is tight coupling.

## Why it matters

Loose coupling is what lets one team change their part without breaking everyone else's.

## Common mistake

Splitting code into many services that still share one table. They look apart, but they are tied tight.

## Three principles

- **Know little.** About other parts.
- **Talk through interfaces.** Not inner details.
- **Aim loose.** Change one part alone.

## Related terms

- [Cohesion](https://learn.benibix.com/term/development/cohesion)
- [Separation of Concerns](https://learn.benibix.com/term/development/separation-of-concerns)
- [Interface (Programming)](https://learn.benibix.com/term/development/interface)
- [Dependency Injection](https://learn.benibix.com/term/development/dependency-injection)

## Told apart from

- [Coupling vs Cohesion](https://learn.benibix.com/compare/coupling-vs-cohesion): Coupling and cohesion are both ways to judge how well code is split, but they look at different things. Coupling is how much one part leans on other parts. Cohesion is how well the code inside one part fits together. Good design aims for low coupling and high cohesion. Each part does one thing and needs little from the rest.

---

Source: https://learn.benibix.com/term/development/coupling
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
