Grandparents and other third parties (step-parents, aunts, uncles, family friends who have served as caregivers) face an uphill battle when seeking custody or visitation in Pennsylvania. The law strongly favors parental rights, and the legal framework has become more restrictive in recent years. But the rights exist, and in the right circumstances courts do grant custody and visitation to non-parents.
Parental rights are constitutionally protected under the Due Process Clause. In Troxel v. Granville, 530 U.S. 57 (2000), the U.S. Supreme Court held that a fit parent's decision about who has contact with their child is entitled to special weight, and any statute that allows a court to override a fit parent's wishes must have adequate safeguards. Pennsylvania's custody statute was rewritten in response to Troxel and its progeny.
Before a grandparent or third party can seek custody, they must establish standing, the legal right to bring the case. Under 23 Pa.C.S. § 5324, a grandparent who is not in loco parentis has standing to file for any form of physical custody or legal custody (including primary custody) if:
Under 23 Pa.C.S. § 5325, a grandparent or great-grandparent has standing for the narrower remedy of partial physical custody or supervised physical custody (often what people mean by "visitation") when:
In D.P. v. G.J.P., 146 A.3d 204 (Pa. 2016), the Pennsylvania Supreme Court struck down part of the grandparent standing statute. At the time, 23 Pa.C.S. § 5325(2) gave grandparents standing to seek partial custody whenever the child's parents had been separated for at least six months. The court held that this provision could not survive strict scrutiny and violated the Due Process rights of fit parents, because the mere fact of a parental separation does not show that the parents are unfit or that their decisions place the child at risk of harm.
The Legislature responded with Act 21 of 2018, which removed the separation-based trigger and replaced it with the current language: grandparents have standing under § 5325(2) only where their relationship began with a parent's consent or under court order, the parents have commenced a custody proceeding, and the parents do not agree that the grandparents should have custody.
The practical effect: a parental separation alone no longer opens the courthouse door to grandparents. There must be an existing custody dispute between the parents, and even then the constitutional preference for the decisions of fit parents carries significant weight on the merits.
A person who has stood in loco parentis, meaning they have assumed the obligations of a parent without a formal legal relationship, may have standing to seek custody under § 5324(2). This most commonly applies to step-parents, live-in partners, and extended family members who have served as the child's primary caregiver.
To establish in loco parentis status, the third party must show that they assumed parental duties with the consent and encouragement of the natural parent. If a parent actively encouraged the third party to serve as a parent figure, the parent may not later use parental preference to completely shut out that person.
Grandparent Custody vs. Guardianship
Custody and guardianship are different legal mechanisms. Custody is governed by the domestic relations court (Family Division) and addresses physical and legal custody of a child. Guardianship of a minor is governed by the Orphans' Court and typically applies when both parents are deceased, incapacitated, or have consented. If you are unsure which path applies to your situation, consult an attorney; the wrong filing in the wrong court wastes time and money.
Statutory content on this page was last verified against Pennsylvania statutes (20 Pa.C.S.; 72 P.S. Art. XXI): Jun. 2026. If you are reading this significantly after that date, confirm key provisions with current statute text or contact our office.
Free consultations available for most practice areas.
Book a Free Consultation Or call 215-949-0888