No single statewide distance applies. Pool setbacks from property lines are governed by local municipal codes (town, village, city, county), not state law.
Most NY municipalities require 5–15 feet from side/rear property lines. Front yard setbacks often larger (20–30+ ft). Corner lots, easements, septic systems, wetlands, and HOA rules add layers.
NY's home rule tradition delegates land use to municipalities. A pool in suburban Suffolk County faces different rules than one in rural Delaware County or urban Westchester.
Never assume—always verify with the authority having jurisdiction.