Short answer. Yes. Article 1290 of the Civil Code provides that when the legal requisites are all 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. No declaration or court action is needed to trigger it.

What the law says

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 →

How legal compensation works

Legal compensation is an automatic extinguishment — not a remedy you invoke, but a consequence the law attaches to a particular factual situation. When two persons owe each other money, and the five conditions of Article 1279 are all present, Article 1290 says the offset happens whether either party knows about it or not. Both debts disappear up to the amount where they overlap. If A owes B ₱100,000, and B owes A ₱60,000, both debts are extinguished to ₱60,000 at the moment the conditions are met — leaving only A's net balance of ₱40,000.

The five conditions under Article 1279

For compensation to operate automatically, Article 1279 requires: (1) each party is a principal creditor and a principal debtor of the other — not a surety, not an agent; (2) both debts are in money, or in consumable things of the same kind and quality; (3) both debts are currently due; (4) both debts are liquidated and demandable — the amounts are fixed and not subject to genuine dispute; and (5) neither debt is subject to an ongoing controversy or a third-party claim duly communicated to the debtor. All five must be present simultaneously. If any one is missing, compensation does not operate by law, though the parties may still agree to offset voluntarily.

What 'even though not aware' actually means

The phrase in Article 1290 — even though the creditors and debtors are not aware of the compensation — has a practical implication: the extinguishment already happened as a matter of law, regardless of whether anyone has raised it in a lawsuit or a demand letter. If you are sued for a debt that was already wiped out by legal compensation, you can plead compensation as a defense, not as a new claim. The obligation no longer exists; you are simply pointing to a legal fact that arose automatically. This also means that interest stops accruing on the extinguished portion from the moment the conditions were all satisfied, not from when someone first brings it up.

Compensation does not replace legal advice

Determining whether the five conditions of Article 1279 are truly satisfied can be more complicated than it looks. A debt that has been disputed, or that is subject to a garnishment by a third party, or that is not yet due, falls outside the automatic rule. A party who wrongly assumes compensation has occurred and stops paying may find themselves in breach. If you believe compensation has extinguished part or all of what you owe — or what someone owes you — it is worth having a lawyer review the specific facts before you act on that belief.

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.

Related provisions

Note. Statute text quoted on this page is reproduced from the official enactment and is linked to the full provision. The explanation around it is general legal information from Vivas & Nobles Law Office, not legal advice. Whether it applies to your situation depends on facts only a lawyer reviewing them can assess.