Cape cod is an arm-shaped peninsula nearly coextensive with barnstable county, massachusetts[1] and forming the easternmost portion of the state of massachusetts, in the northeastern united states. the cape's small town character and beachfront brings hea