Yaphank is a census-designated place (CDP) in Suffolk County, New York, United States. The population was 5,025 at the 2000 census. Yaphank is a community in the south part of the Town of Brookhaven. It is served by the Longwood Central School District, except for extreme southwestern Yaphank, where it is served by the South Country Central School District.