Compensation or Setoff: When Do Mutual Debts Cancel Each Other?
Quick answer: Under Article 1278 of the Civil Code, compensation (setoff) takes place when two persons, in their own right, are creditors and debtors of each other. If all five requisites of Article 1279 are present—both parties principally bound, both debts in money or the same consumable things, both due, both liquidated and demandable, and neither subject to a third-party claim communicated in time—the debts cancel each other automatically “to the concurrent amount, even though the creditors and debtors are not aware of the compensation” (Article 1290). The larger debt survives for the balance. Some debts can never be set off, including deposits, gratuitous support and civil liability from a crime (Articles 1287–1288).
The rule, the defense and your next step at a glance
| Question | Short answer |
|---|---|
| Right and rule | Mutual debts meeting all five Art. 1279 requisites cancel by operation of law (Art. 1290) |
| Main defense | One debt is not yet due, not liquidated, disputed, or in an excluded category (Arts. 1287–1288) |
| Evidence | Proof of both debts, their due dates and exact amounts, and that each party owes in its own right |
| Deadline and forum | Raise compensation as a defense in any collection case; no separate period was verified |
| Next step | Compute both balances and send a written reconciliation naming the amount set off |
The five requisites of legal compensation
Article 1279 says that for compensation to be proper, it is necessary:
- that each one of the obligors be bound principally, and that he be at the same time a principal creditor of the other;
- that both debts consist in a sum of money, or if the things due are consumable, they be of the same kind, and also of the same quality if the latter has been stated;
- that the two debts be due;
- that they be liquidated and demandable; and
- that over neither of them there be any retention or controversy, commenced by third persons and communicated in due time to the debtor.
| Requisite | What it means in practice | Common reason it fails |
|---|---|---|
| Mutual principal debts | Each party owes the other in its own name | One party only guaranteed the debt, or owes as agent or trustee |
| Same kind | Money against money, or identical consumable goods | One debt is money and the other is delivery of a specific thing |
| Both due | The payment dates have arrived | One loan is not yet mature |
| Liquidated and demandable | The exact amount is known or computable and can be enforced | A damages claim not yet proved or fixed |
| No third-party claim | No garnishment or claim by an outsider was communicated in time | The debt was garnished in another case |
How compensation takes effect
When the requisites concur, compensation “takes effect by operation of law, and extinguishes both debts to the concurrent amount” (Article 1290). In Bank of the Philippine Islands v. Court of Appeals (G.R. No. 116792, March 29, 1996), the Supreme Court explained that legal compensation “operates even against the will of the interested parties,” that its effects arise “on the very day on which all its requisites concur,” and that when used as a defense it “retroacts to the date when its requisites are fulfilled.” The Court upheld a bank’s debit of a depositor’s account for a dishonored U.S. Treasury warrant the depositor had deposited: the bank was the depositor’s debtor on the deposit and his creditor on the returned warrant, both debts were in money, due, liquidated and demandable, and no third person claimed them. That the account was held jointly with his wife did not defeat mutuality on those facts.
Compensation may be total, when the debts are equal, or partial (Article 1281). It operates even if the debts are payable in different places, with an indemnity for the cost of exchange or transport (Article 1286). Where one person owes several debts that could be compensated, the rules on application of payments decide the order (Article 1289); see application of payments.
Legal, conventional and judicial compensation
| Kind | How it arises | Basis |
|---|---|---|
| Legal | Automatically, once all five requisites are present | Arts. 1279, 1290 |
| Conventional | By agreement, even for debts not yet due | Art. 1282 |
| Judicial | In a lawsuit, a party with a damages claim may set it off by proving the right and the amount | Art. 1283 |
Rescissible or voidable debts may be compensated before they are judicially rescinded or annulled (Article 1284). A guarantor may set up compensation for what the creditor owes the principal debtor (Article 1280).
Debts that cannot be set off
- Deposits and loans of use: compensation is not proper when one debt arises from a depositum or from the obligations of a depositary or of a bailee in commodatum (Article 1287). Someone holding your property for safekeeping cannot keep it to offset what you owe.
- Gratuitous support: compensation cannot be set up against a creditor who has a claim for support due by gratuitous title (Article 1287).
- Civil liability from a crime: there is no compensation if one debt is civil liability arising from a penal offense (Article 1288).
What if the debt was assigned to someone else?
| How the assignment happened | Can the debtor still set off against the assignee? |
|---|---|
| Debtor consented to the assignment | No, unless the debtor reserved the right to compensation when consenting |
| Debtor was notified but did not consent | Yes for debts before the assignment, not for later ones |
| Assignment made without the debtor’s knowledge | Yes for debts before it and later ones until the debtor learned of it |
Source: Article 1285. Assignment of loans is common when banks sell portfolios, so check any notice of assignment you received before relying on a setoff.
Evidence to prepare
- The documents creating each debt: contracts, promissory notes, invoices or judgments.
- Statements showing each due date and exact balance.
- Proof that each party owes and is owed in its own name.
- Any notice of assignment, garnishment or third-party claim.
- A written setoff agreement, if relying on conventional compensation.
- A computation showing the concurrent amount and the surviving balance.
Your options and what to do next
| Your situation | Option | First step |
|---|---|---|
| Both debts are due and the amounts are clear | Legal compensation | Send a written reconciliation naming the amount set off and the balance |
| One debt is not yet due | Conventional compensation (Art. 1282) | Propose a signed setoff agreement |
| You are being sued and have a damages claim | Judicial compensation (Art. 1283) | Plead the claim in your answer and prove the amount |
| Your bank debited your account | Check whether all five requisites existed | Ask the bank in writing for the debt it set off and its basis |
| The other side refuses to recognise the setoff | Demand, then barangay conciliation or court | Send a demand letter attaching both computations |
Where both parties are individuals in the same city or municipality, barangay conciliation may be required before filing in court (Local Government Code, Sections 408 and 412). For a disputed balance, see our guide to unpaid debt, demand and collection.
Frequently asked questions
Do both debts need to be equal?
No. Compensation may be partial; the debts are extinguished only to the concurrent amount, and the larger debt survives for the balance (Articles 1281 and 1290).
Can a disputed damages claim be set off?
Not automatically, because legal compensation requires debts that are liquidated and demandable (Article 1279). In a lawsuit, the party may set off damages by proving the right and the amount (Article 1283).
Can a bank set off my deposit against my loan?
Yes, when all five Article 1279 requisites are present, because the bank is the depositor’s debtor on the deposit. In BPI v. Court of Appeals (1996), the Supreme Court upheld such a debit. Check your account and loan agreements as well.
Do I need to agree for compensation to happen?
No. Legal compensation takes effect by operation of law even if the parties are unaware of it (Article 1290).
Related guides
- How payment extinguishes an obligation
- Extinguishment of obligations: how a debt legally ends
- Novation of a contract or debt
- Joint vs solidary obligations
Sources and legal citations
- Civil Code of the Philippines, Republic Act No. 386, Articles 1278–1290.
- Bank of the Philippine Islands v. Court of Appeals, G.R. No. 116792, March 29, 1996.
- Local Government Code, Republic Act No. 7160, Sections 408 and 412.
This article provides general Philippine legal information and is not advice on a specific debt or dispute.
Sources rechecked as of: October 21, 2026
