The four canons
- Canon 1: A judge shall uphold and promote the independence, integrity and impartiality of the judiciary, and shall avoid impropriety and the appearance of impropriety.
- Canon 2: A judge shall perform the duties of judicial office impartially, competently and diligently.
- Canon 3: A judge shall conduct the judge’s personal and extrajudicial activities to minimize the risk of conflict with the obligations of judicial office.
- Canon 4: A judge or candidate for judicial office shall not engage in political or campaign activity that is inconsistent with the independence, integrity or impartiality of the judiciary.
Each canon is carried out through numbered rules, which are binding, and comments, which explain them. States adopt the Model Code with their own changes, so the state’s own code and advisory opinions control. Federal judges follow the Code of Conduct for United States Judges, and in 2023 the Supreme Court of the United States adopted a code of conduct for its justices.
Impartiality and fairness
Rule 2.2 requires a judge to uphold and apply the law and to perform all duties fairly and impartially. Rule 2.3 prohibits bias, prejudice and harassment in the performance of judicial duties, and requires judges to keep lawyers and staff under their direction from it as well. Rule 2.6 protects every person’s right to be heard according to law. The comments to Rule 2.2 recognize that a judge may make reasonable accommodations so that self-represented litigants have their matters fairly heard; see self-represented litigants.
Ex parte communications
Rule 2.9 prohibits ex parte communications about a pending or impending matter, with narrow exceptions: scheduling and administrative communications that do not address substantive matters, when no party gains an advantage and the others are promptly notified; written advice from a disinterested expert on the law, with notice to the parties; consultation with court staff and other judges, without receiving factual information not part of the record; settlement discussions with consent; and communications the law expressly authorizes. Rule 2.9(C) also bars a judge from investigating facts independently; the comments make clear that this includes information available online.
Disqualification
Under Rule 2.11, a judge must disqualify in any proceeding in which the judge’s impartiality might reasonably be questioned, including personal bias or prejudice concerning a party or lawyer, personal knowledge of disputed facts, family relationships with participants, economic interests in the matter, and prior involvement as a lawyer or witness. Except for personal bias, the parties may waive some grounds through the disclosure-and-remittal procedure of Rule 2.11(C). The rule of necessity allows a judge to hear a case when no other judge is available, with disclosure.
Due process sets a floor as well. In Caperton v. A.T. Massey Coal Co., 556 U.S. 868 (2009), the Supreme Court held that extraordinary campaign support from a party created a probability of bias requiring recusal, and in Williams v. Pennsylvania, 579 U.S. 1 (2016), that a judge who had significant personal involvement as a prosecutor in a critical decision in the case could not later rule on it.
Social media and relationships
ABA Formal Opinion 462 (2013) concluded that judges may use social media, with care: what a judge posts, likes or shares can suggest bias, create ex parte contact or lend the prestige of office to others. ABA Formal Opinion 488 (2019) addresses when a judge’s friendships and other relationships with lawyers or parties require disclosure or disqualification. State advisory opinions vary, and some are stricter.
Outside activities, gifts and finances
Canon 3 permits judges to take part in civic, charitable, educational and law-related activities, including teaching and writing about the law, so long as the activity does not interfere with judicial duties, lead to frequent disqualification, or appear to undermine independence or impartiality. Judges may not use the prestige of office for anyone’s private benefit (Rule 1.3), and Rule 3.13 governs gifts, loans and other things of value, many of which must be publicly reported.
Getting an answer before acting
Most states have a judicial ethics advisory committee that answers questions from judges, often confidentially and quickly. Asking before acting is usually the best protection, and many published opinions answer common questions about social media, fundraising, recusal and outside activities.
This guide describes the ABA Model Code of Judicial Conduct. Each state adopts its own code with changes, and state advisory opinions control, so check the code and opinions that govern your court. This is general educational information from a nonprofit judicial education organization, not legal advice. Last reviewed December 2026.



