Boundary Atlas

ZIP code 02871: Portsmouth, RI

ZIP code 02871 is in Melville (2.3% of residents), in Newport County, Rhode Island. 98% of its residents live outside city limits. It is in Rhode Island's 1st congressional district. Its state senate district is State Senate District 11; its state house districts are State House District 72 (51%), State House District 71 (49%) and State House District 69 (0.1%).

17,640residents (2020 Census)
17.1 sq miland area
1cities and towns
1congressional district
7voting precincts

See it on the mapAll of Rhode Island

City and county

City or townShare of ZIP residents
Melville2.3%

CountyShare of ZIP residents
Newport County100%

Town or county subdivisionShare of ZIP residents
Portsmouth town100%

Congressional district

Congressional districtShare of ZIP residents
Rhode Island's 1st congressional district (RI-01)100%

State legislative districts

State senate districtShare of ZIP residents
State Senate District 11100%

State house districtShare of ZIP residents
State House District 7251%
State House District 7149%
State House District 690.1%

Voting precincts

7 voting precincts overlap ZIP 02871. Map them, with each precinct's share of the ZIP's residents.

Get this in your AI agent

Your agent can get these cities, counties, districts and precincts with their shares, and their GeoJSON boundaries, from Boundary Atlas. Add https://atlas-production-d344.up.railway.app/mcp to Claude, ChatGPT, Cursor or Codex (free, no key; how), then:

related_geographies(id="us:zcta:02871")

ZIP 02871 here is the Census Bureau's ZIP Code Tabulation Area, which approximates the USPS ZIP Code; PO-box-only ZIPs have none. Districts are the maps in force for the November 3, 2026 election.