The borough median age of 41 years was slightly more than the county median age of 40 years. The distribution by age group was 23.6% under the age of 18, 5.6% from 18 to 24, 24.8% from 25 to 44, 22.7% from 45 to 64, and 23.2% who were 65 years of age or older. The median age was 41 years. For every 100 females there were 100.9 males. For every 100 females age 18 and over, there were 93.7 males.