(a) Compulsory counterclaim.
(a)(1) A pleading must state as a counterclaim any claim that—at the time of its service—the pleader has against an opposing party if the claim:
(a)(1)(A) arises out of the transaction or occurrence that is the subject matter of the opposing party's claim; and
(a)(1)(B) does not require adding another party over whom the court cannot acquire jurisdiction.
(a)(2) The pleader need not state the claim if:
(a)(2)(A) when the action was commenced, the claim was the subject of another pending action, or
(a)(2)(B) the opposing party sued on its claim by attachment or other process that did not establish personal jurisdiction over the pleader on that claim, and the pleader does not assert any counterclaim under this rule.
(b) Permissive counterclaim. A pleading may state as a counterclaim against an opposing party any claim that is not compulsory.
(c) Relief sought in a counterclaim. A counterclaim need not diminish or defeat the recovery sought by the opposing party. It may request relief that exceeds in amount or differs in kind from the relief sought by the opposing party.
(d) Counterclaim maturing or acquired after pleading. The court may permit a party to file a supplemental pleading asserting a counterclaim that matured or was acquired by the party after serving an earlier pleading.
(e) Crossclaim against coparty. A pleading may state as a crossclaim any claim by one party against a coparty if the claim arises out of the transaction or occurrence that is the subject matter of the original action or of a counterclaim, or if the claim relates to any property that is the subject matter of the original action. The crossclaim may include a claim that the coparty is or may be liable to the crossclaimant for all or part of a claim asserted in the action against the crossclaimant.
(f) Joining additional parties. Rules 19 and 20 govern the addition of a person as a party to a counterclaim or crossclaim.
(g) Separate trials; separate judgments. If the court orders separate trials under Rule 42, it may enter judgment on a counterclaim or crossclaim under Rule 54(b) when it has jurisdiction to do so, even if the opposing party’s claims have been dismissed or otherwise resolved.