Commack is a hamlet and census-designated place in the towns of Huntington and Smithtown in Suffolk County, on Long Island, in New York. The CDP's population was 36,124 at the 2010 census.