In short
Compensation takes place when two persons are, in their own right, reciprocally creditor and debtor of each other, and its effect is to extinguish both debts in the concurring amount, even if neither creditor nor debtor knows of it. Five things are required for it to operate: that each person bound is so principally and is at the same time principal creditor of the other; that both debts consist of a sum of money or, if the things owed are fungible, of the same species and quality where this has been designated; that both are liquidated, due and enforceable; that over neither is there a suspension of payment or a dispute brought by third parties and timely notified to the debtor; and that there be no legal prohibition. The surety may raise compensation as to what the creditor owes their principal debtor. The Code excludes five classes of credit: debts of support given gratuitously, credits against which there are objections, certain attached credits, non-attachable credits, and credits of the Commonwealth or a municipality, unless the performance is owed to the same fund from which the credit of whoever compensates must be paid. If several debts may be compensated, the order provided for the application of payments is followed, and the parties may agree, clearly and expressly, the compensation of debts that are not of the same nature or that are not principal.
What is it?
It is Section Four of Chapter II of Title II of Book Four of the Civil Code of 2020, Articles 1144 to 1152. It is the way debts are extinguished without anyone paying: where two persons owe each other, the debts cancel out as far as they coincide.
Who can do it?
Two persons who are, in their own right, reciprocally creditor and debtor of each other, and whose debts meet the five requirements of Article 1145. Also the surety, as to what the creditor owes their principal debtor.
Requirements
- That each person bound is so principally and is at the same time principal creditor of the other.Verified against the official source
- That both debts consist of a sum of money or, if the things owed are fungible, of the same species and quality where this has been designated.Verified against the official source
- That both debts are liquidated, due and enforceable.Verified against the official source
- That over neither of them is there a suspension of payment or a dispute brought by third parties and timely notified to the debtor.Verified against the official source
- That there be no legal prohibition.Verified against the official source
Documents you need
Cost
Step by step
Step 1: What it is, and that it happens on its own
Article 1144 defines it: compensation takes place when two persons are, in their own right, reciprocally creditor and debtor of each other. And it describes its effect with a surprising clause: extinguishing both debts in the concurring amount, even if neither creditor nor debtor knows of it. It need not be invoked to operate.
Step 2: The five requirements
Article 1145 lists them and all must be met. That each person bound is so principally and is at the same time principal creditor of the other. That both debts consist of a sum of money or, if the things owed are fungible, of the same species and quality where this has been designated. That both debts are liquidated, due and enforceable. That over neither is there a suspension of payment or a dispute brought by third parties and timely notified to the debtor. And that there be no legal prohibition.
Step 3: The surety’s exception
Article 1146 expressly breaks the first requirement: notwithstanding subsection (a) of the preceding article, the surety may raise compensation as to what the creditor owes their principal debtor. It is the only person the Code allows to compensate with a debt that is not their own.
Step 4: If the creditor assigned the credit
Article 1147 grades the answer by what you knew. If you consented to the assignment, you cannot raise against the assignee the compensation you had against the assignor. If the creditor gives you notice and you do not consent, you may raise the compensation of debts prior to it, but not of later ones. And if the assignment was made without your knowledge, you may raise that of credits prior to it and of later ones until you learned of the assignment. Consenting is what costs you most.
Step 5: Debts payable in different places
Article 1148 does not exclude them: debts payable in different places may be compensated by indemnifying the transport expenses or by changing the place of payment. Distance is settled with money; it does not block compensation.
Step 6: What cannot be compensated
Article 1149 names five. Debts of support given gratuitously. Credits against which there are objections. Attached credits, if the debtor acquired their credit after the attachment, or if their credit fell due after the attachment and after the maturity of the attached credit. Non-attachable credits. And credits of the Commonwealth or a municipality, unless the performance is owed to the same fund from which the credit of whoever compensates must be paid.
Step 7: If several debts may be compensated
Article 1150 invents no new order: if several debts may be compensated, the order provided for the application of payments is followed. That is, the same rules as Articles 1126 to 1128, with interest ahead of principal.
Step 8: The one agreed and the one the judge decides
Two more articles widen the figure. Article 1151: reciprocal creditors and debtors may agree, clearly and expressly, the compensation of debts that are not of the same nature or that are not principal; there the requirements of 1145 yield to the agreement. And Article 1152: judicial compensation operates when the judge, in a counterclaim, liquidates the credit corresponding to the plaintiff.
Where to do it
Legal compensation operates on its own between the two parties, with no counter and no procedure. The conventional one is agreed between them. The judicial one is declared by the judge in a counterclaim case, before the Court of First Instance. The Code names no agency here.
How long it takes
What to do if something goes wrong
If your debt is a support payment, this guide does not tell you whether it can be compensated: Article 1149 excludes debts of support given gratuitously, and deciding whether a particular support obligation is such requires reading the support legislation, which we did not read here. Nor do we say which credits are non-attachable: the Code itself carries a list later, in Article 1157, which this guide does not cover. If there is an assignment of the credit, read Article 1147 carefully: consenting to it closes off compensation against the assignee. This guide does not explain the procedural rules for the counterclaim in Article 1152. The Code publishes no fee and no term for these articles. MiPRFácil does not represent anyone in court and gives no legal advice.
Common mistakes
- Compensating debts not yet due or not liquidated: subsection (c) requires liquidated, due and enforceable.
- Compensating a money debt against a delivery of things not of the same designated species and quality.
- Compensating where there is a dispute brought by third parties timely notified to the debtor.
- Consenting to the assignment of the credit and then trying to raise compensation against the assignee.
- Dismissing compensation because the debts are payable in different places: it is settled with transport expenses or by changing the place of payment.
- Compensating an attached credit in the cases Article 1149 excludes.
- Compensating against the Commonwealth or a municipality outside the same-fund case.
- Agreeing to compensate different debts without making it clear and express, as Article 1151 requires.
Frequently asked questions
I owe them and they owe me — does it cancel out by itself?
If the five requirements of Article 1145 are met, yes: the effect is to extinguish both debts in the concurring amount, even if neither creditor nor debtor knows of it.
Can a support payment be compensated?
Article 1149 excludes debts of support given gratuitously. Whether a particular support obligation falls there depends on the support legislation, which we did not read for this guide, so we do not assert it here.
May a surety raise compensation?
Yes. Article 1146 allows it as to what the creditor owes their principal debtor, despite the reciprocity requirement in subsection (a).
If several debts can be compensated, which is cancelled first?
The order provided for the application of payments is followed, under Article 1150. Those rules are in Articles 1126 to 1128 and put interest ahead of principal.
Official sources
These are the government pages this guide is based on.
- Poder Judicial de Puerto Rico
Poder Judicial
bvirtualogp.pr.gov
Last verified
September 8, 2026
MiPRFácil is an independent informational website and is not affiliated with, endorsed by, or operated by the Government of Puerto Rico or any government agency.
MiPRFácil does not submit applications on your behalf.
Was this guide helpful?
Did you find out-of-date information?
What an obligation is and where it comes from
Six sources, and the list stays open. Whoever performs knowing they were not bound cannot demand it back.
Several debts with one creditor: which one your payment goes to
You choose at the moment of paying, but interest comes first. And a receipt for principal with no reservation presumes interest paid.
Paying another’s debt and keeping the credit and its securities
Subrogation is not presumed outside the Code’s cases: it must be clearly established. In three cases it is presumed.
When the one who collects and the one who owes become the same person
The obligation is extinguished together with its securities. But the heir’s own debts are not merged with the estate’s.
Prescription: how long they can collect from you or sue you
Personal actions prescribe in 4 years and damages in 1 year from learning who caused them. Acknowledging the debt restarts the clock.
Several debtors: when each pays a share and when one is charged the lot
Solidarity is not presumed: the obligation or the law must say so. Without it, the debt is presumed divided into equal parts.