Short answer. It happens automatically. Article 1290 of the Civil Code states that once all legal requisites are present, compensation takes effect by operation of law — no declaration by either party is necessary. The two debts extinguish each other up to the concurrent amount the instant all conditions are met.
What the law says
When all the requisites mentioned in article 1279 are present, compensation takes effect by operation of law, and extinguishes both debts to the concurrent amount, even though the creditors and debtors are not aware of the compensation.
Civil Code, Article 1290 — Compensation by Operation of Law. Read the full provision →
Legal compensation needs no declaration
Philippine law recognizes three types of compensation: legal (by operation of law), conventional (by agreement), and judicial (decreed by a court). Article 1290 governs the first type. Its logic is straightforward: if the law has already decided that two debts cancel each other, no formal act should be needed to trigger that result. The moment all five conditions of Article 1279 are simultaneously satisfied, both debts are extinguished — automatically, silently, without notice. Neither party needs to send a letter, file a case, or say anything at all.
The conditions that must all be present
Article 1279 lists five requirements. Each obligor must be a principal creditor of the other — the mutual debt cannot involve sureties or agents. Both debts must be in money, or in consumable things of the same kind and quality. Both debts must be currently due. Both must be liquidated and demandable — the amounts are certain and not genuinely disputed. And neither debt may be under any active retention or controversy raised by a third party. Miss one condition and legal compensation does not operate; the parties would need to agree on a voluntary offset instead.
Practical effect: when does extinguishment happen?
Because compensation is retroactive to the moment all conditions were met, interest on the extinguished amount stops from that point — not from when you first raise the issue. If you are later sued for a debt that was already wiped out by compensation, you raise it as a defense based on facts that already occurred. The courts do not create the compensation; they confirm what the law already did. This is why it matters to identify exactly when the last of the five conditions fell into place — that is the moment your obligation (to the extent offset) ceased to exist.
When you still need to assert it
Automatic operation does not mean you can ignore the issue. If your creditor files suit without acknowledging the mutual debt, you must raise the offsetting obligation as a defense. A court will not apply compensation on its own initiative if neither party pleads it. The law extinguished the debt; the court's role is to recognize that fact when it is properly raised. If you delay raising it, or fail to raise it at all in the litigation, you may lose the benefit of compensation for that proceeding. Identifying and asserting the offset early — ideally before a case reaches court — avoids unnecessary complications.
Cases citing this provision
These Supreme Court decisions cite the provision above. We list them so you can read them yourself; the summaries of what each decided are not ours to give.
- Union Bank of the Philippines vs. Development Bank of the Philippines, G.R. No. 191555, January 20, 2014 — read the decision on LawPhil →
- Gatchalian Realty, Inc. vs. Evelyn M. Angeles, G.R. No. 202358, November 27, 2013 — read the decision on LawPhil →
- Banco De Oro Unibank, Inc. vs. Edgardo C. Ypil, Sr., et al, G.R. No. 212024, October 12, 2020 — read the decision on LawPhil →
- First United Constructors Corporation, et al. vs. Bayanihan Automotive Corporation, G.R. No. 164985, January 15, 2014 — read the decision on LawPhil →