Somewhere around year three of a five-year construction contract, the whole thing falls apart. The builder has poured foundations, framed walls, run electrical conduit through half the building. The client, for reasons that may or may not be legally defensible, walks away. No completed project. No agreed price ever triggered. Just a half-built structure and two parties staring at each other across a very expensive hole in the ground.

Who gets paid?

Contract law, the obvious answer, often goes silent here. If the contract is void, repudiated, or frustrated before completion, the agreed price may never become enforceable. The builder can't sue on the contract for the full sum because the full sum was contingent on full performance. This is where unjust enrichment steps in, quietly reshaping the financial outcome in ways that routinely surprise people who assumed the written agreement was the only document that mattered.

The Doctrine in Plain English

Unjust enrichment is not a creature of contract. It sits in a separate body of law, sometimes called the law of restitution, and it asks a different question entirely. Not "what did you promise?" but "what did you receive that you have no right to keep?"

For a claim to succeed, courts in most common law jurisdictions require three things to line up. The defendant must have been enriched. That enrichment must have come at the claimant's expense. And it must be unjust for the defendant to retain it. That third element is where most of the litigation actually lives, because "unjust" is not a free-floating moral judgment. Courts have developed specific categories, unjust factors in the terminology of the field, that qualify: failure of consideration, mistake, duress, and so on. You can't simply walk into court and say the other side got lucky and that feels wrong. Feelings are not causes of action.

The remedy, when the claim succeeds, is restitution. The court awards the value of the benefit conferred, a measure known in older case law as quantum meruit (as much as is deserved) or quantum valebat (as much as it was worth). This is not expectation damages, which compensate for the profit a party would have made on a completed deal. Restitution looks backward, at what was transferred, not forward at what was promised. That distinction matters enormously, and most people learn it too late.

What "Benefit Conferred" Actually Means in Practice

Take a concrete scenario. Two parties, call them Reyes Construction and Alderton Logistics, sign a seven-year facilities management contract. Reyes will renovate and then operate Alderton's regional distribution hub. The fee structure is backloaded: low payments in years one and two while renovation work happens, with the real margin arriving in years three through seven once operations scale up. Reyes spends eighteen months and roughly forty percent of its projected total costs on the renovation phase. Then Alderton is acquired by a rival, the acquiring company terminates the contract, and Alderton argues the termination clause permits this.

A pure contract claim might fail entirely if the clause is ambiguous and the court finds the termination valid. Reyes never reached the performance milestone that triggered the larger payments. But Alderton now has a renovated hub, something it would have had to pay someone to build regardless. That is the enrichment. It came at Reyes's expense. And if the termination, even if technically permitted, left Reyes uncompensated for work already absorbed into Alderton's assets, many courts will find the retention of that benefit unjust.

The award won't be Reyes's lost profit on years three through seven. It will be the objective market value of the renovation work: what a willing buyer would have paid a willing contractor for that specific scope. Sometimes that number is higher than what the contract would have yielded. Sometimes lower. It depends entirely on how the contract was priced, and that asymmetry is one of the doctrine's most underappreciated features. The party who priced a deal tightly to win it may discover, on collapse, that the market value of its work was worth considerably more than it agreed to accept.

What People Consistently Get Wrong

The most common misconception is that unjust enrichment is a fallback you can invoke whenever a contract goes badly. It isn't. Courts are notably reluctant to allow restitutionary claims to run alongside a valid, subsisting contract, because doing so would let a disappointed party rewrite the deal by choosing a more favourable measure of recovery. If you agreed to do something for a fixed price and did it badly, you can't then claim quantum meruit for the full market value of your defective work. The contract governs. Full stop. The doctrine only gets traction when the contract genuinely breaks down as a legal instrument: void for mistake, discharged by frustration, or terminated in a way that leaves one party holding value they paid for through performance.

There is also a subtler error in how people think about enrichment itself. Courts distinguish between "incontrovertible benefit" and benefit the recipient might plausibly dispute. If Reyes builds something Alderton didn't want built, a court might find no genuine enrichment, because Alderton can argue it would never have chosen to spend money on that work independently. The builder who adds a room the client explicitly rejected won't recover on unjust enrichment, even if the room has objective market value. The whole structure of the doctrine, precise, categorical, resistant to sentiment, is rather like an old lock that only opens with the right key. Free acceptance bridges some of this gap: the principle that a party who knowingly lets another perform without objection cannot later deny the value of that performance. But it requires the recipient to have had a genuine choice to stop the performance and declined to use it.

Ask yourself, if you are sitting across from this problem right now: does the other side have something your work built, something they are using or selling? That is the asset to focus on. Not what you were promised. What they kept.

Why the Doctrine Has Real Teeth in Long-Term Deals

Short contracts rarely produce dramatic unjust enrichment disputes because performance and payment are close together in time. The enrichment, if any, is modest. Long-term contracts are a different animal entirely. The five-year outsourcing agreement, the decade-long joint venture, the infrastructure build-and-operate arrangement: all of them create deep asymmetries, with one party performing heavily upfront while the other's obligations are weighted toward the back end. If the relationship collapses in the middle, the performing party may have transferred enormous value that the contract's payment structure never anticipated compensating early.

Industries that rely on relational contracts, among them construction, technology outsourcing, and energy project development, have generated a steady body of case law precisely because their deal structures make mid-performance collapse so financially brutal. The history of infrastructure disputes across common law jurisdictions is, in no small part, a history of courts reaching for restitutionary principles when contract law ran out of road. The doctrine of unjust enrichment doesn't fix the commercial damage. It doesn't restore the relationship or deliver the profit margin that was the whole point of signing. What it does is prevent the collapsing party from walking away with a windfall built on someone else's labour and capital.

That, in the end, is its core argument, and it is one that predates most of the contract law that now surrounds it: the law of contract enforces promises, but the law of unjust enrichment enforces something older and considerably harder to argue with. You don't get to keep what you didn't pay for. The courts have been saying so, in one form or another, for rather a long time.