A special election to determine the member of the United States House of Representatives for California's 5th congressional district was held on April 7, 1987, with a runoff held two months later on June 2.
Incumbent Representative Sala Burton, who herself was elected during a special election following the previous incumbent's death, died on February 1, 1987, from colon cancer. Her death triggered a special election, leading to multiple people running to finish her term. No candidate received a 50% election in the general, leading to a run-off which former California Democratic Party chair Nancy Pelosi won.
Candidates.
Fourteen candidates ran for the special election.
Special primaries.
The special election primaries were held on April 7, 1987. Every candidate ran in a nonpartisan blanket primary. If a candidate won 50% of the vote, they would automatically fill in the vacant seat. If no candidate won 50% of the vote, a runoff would be triggered with the top candidates in each party advancing to the runoff.
! scope="col" colspan="2" style="width: 15em" |Party
! scope="col" style="width: 17em" |Candidate
! scope="col" style="width: 5em" |Votes
! scope="col" style="width: 3.5em" |%
! colspan="3" style="text-align:right;" | Total votes
Runoff election.
The runoff election took place on June 2, 1987, with Nancy Pelosi gaining the majority of the vote, winning her the special election for Burton's seat.
! scope="col" colspan="2" style="width: 130px"|Party
! scope="col" style="width: 17em"|Candidate
! scope="col" style="width: 5em"|Votes
! scope="col" style="width: 3.5em"|%
! scope="col" style="width: 3.5em"| ;templatestyles src="Template:Tooltip/styles.css" / ;±%
! colspan="3" style="text-align:right;" | Total votes
References.
 ;templatestyles src="Reflist/styles.css" / ;