According to the United States Census Bureau, the borough has a total area of 1.048 square miles (2.715 km). All of it is land. Dunellen is in the Raritan Valley, a line of communities in central New Jersey.