Contraindications are determined through extensive clinical trials and research. Factors such as the pharmacokinetics and pharmacodynamics of a drug, the patient's medical history, and potential interactions with other medications are considered. Regulatory agencies like the FDA provide guidance based on available evidence to classify certain conditions or situations as contraindications.