Deterrence is often contrasted with retributivism, which holds that punishment is a necessary consequence of a crime and should be calculated based on the gravity of the wrong done.
Deterrence can be divided into three separate categories.
Specific deterrence focuses on the individual in question. The aim of these punishments is to discourage the criminal from future criminal acts by instilling an understanding of the consequences.
General or indirect deterrence focuses on general prevention of crime by making examples of specific deviants. The individual actor is not the focus of the attempt at behavioral change, but rather receives punishment in public view in order to deter other individuals from deviance in the future. The argument that deterrence, rather than retribution, is the main justification for punishment is a hallmark of the rational choice theory and can be traced to Beccaria and Bentham.
Incapacitation is considered by some to be a subset of specific deterrence. Incapacitation aims to prevent future crimes not by rehabilitating the individual but rather from taking away his ability to commit such acts. Under this theory, criminals are put in jail not so that they will learn the consequence of their actions but rather so that while there they will be unable to engage in crime.