Opposing directions representing mutual debt setoff

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

QuestionShort answer
Right and ruleMutual debts meeting all five Art. 1279 requisites cancel by operation of law (Art. 1290)
Main defenseOne debt is not yet due, not liquidated, disputed, or in an excluded category (Arts. 1287–1288)
EvidenceProof of both debts, their due dates and exact amounts, and that each party owes in its own right
Deadline and forumRaise compensation as a defense in any collection case; no separate period was verified
Next stepCompute 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:

  1. that each one of the obligors be bound principally, and that he be at the same time a principal creditor of the other;
  2. 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;
  3. that the two debts be due;
  4. that they be liquidated and demandable; and
  5. that over neither of them there be any retention or controversy, commenced by third persons and communicated in due time to the debtor.
RequisiteWhat it means in practiceCommon reason it fails
Mutual principal debtsEach party owes the other in its own nameOne party only guaranteed the debt, or owes as agent or trustee
Same kindMoney against money, or identical consumable goodsOne debt is money and the other is delivery of a specific thing
Both dueThe payment dates have arrivedOne loan is not yet mature
Liquidated and demandableThe exact amount is known or computable and can be enforcedA damages claim not yet proved or fixed
No third-party claimNo garnishment or claim by an outsider was communicated in timeThe 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

KindHow it arisesBasis
LegalAutomatically, once all five requisites are presentArts. 1279, 1290
ConventionalBy agreement, even for debts not yet dueArt. 1282
JudicialIn a lawsuit, a party with a damages claim may set it off by proving the right and the amountArt. 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 happenedCan the debtor still set off against the assignee?
Debtor consented to the assignmentNo, unless the debtor reserved the right to compensation when consenting
Debtor was notified but did not consentYes for debts before the assignment, not for later ones
Assignment made without the debtor’s knowledgeYes 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 situationOptionFirst step
Both debts are due and the amounts are clearLegal compensationSend a written reconciliation naming the amount set off and the balance
One debt is not yet dueConventional compensation (Art. 1282)Propose a signed setoff agreement
You are being sued and have a damages claimJudicial compensation (Art. 1283)Plead the claim in your answer and prove the amount
Your bank debited your accountCheck whether all five requisites existedAsk the bank in writing for the debt it set off and its basis
The other side refuses to recognise the setoffDemand, then barangay conciliation or courtSend 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).

Sources and legal citations

This article provides general Philippine legal information and is not advice on a specific debt or dispute.

Sources rechecked as of: October 21, 2026