S. nigricans are found naturally in and around coral reefs. Adult S. nigricans inhabit reef flats and lagoon reefs in colonies in areas with staghorn coral. S. nigricans are limited by water temperature and their diet and have been experiencing a negative impact of their population amounts. Climate and ocean composition has been changing due to global warming and fossil fuel use, therefore this habitat is being altered and coral reefs are becoming greatly reduced.
S. nigricans is most frequently found across the coast of East Africa and around Madagascar; in the British Indian Ocean Territory and the southern coasts of India; across Southeast Asia, the northern coast of Australia; and Melanesia, Micronesia and Polynesia. They can also be found less frequently in the Red Sea, the Persian Gulf, the Gulf of California, and across the Western coast of Central America.