Demographic data is collected through various methods such as surveys, census data, health records, and administrative databases. Surveys may include specific questions about age, gender, income, and more, while health records provide information on patients' demographics and their health status.