When a drug is used therapeutically, it is important to understand the margin of safety that exists between the dose needed for the desired effect and the dose that produces unwanted and possibly dangerous side-effects (measured by the TD50, the dose that produces toxicity in 50% of individuals). This relationship, termed the therapeutic index, is defined as the ratio TD50:ED50. In general, the narrower this margin, the more likely it is that the drug will produce unwanted effects.