TD50 is determined through experimental studies, often using animal models, where different doses of the substance are administered to a group of subjects. The dose that results in toxic effects in half of the subjects is identified as the TD50. This involves plotting a dose-response curve, where the x-axis represents the dose and the y-axis represents the percentage of the population affected.