Are Laws Based on Morals or Do They Create Them?

Laws are partly based on morals and partly not, and the honest answer to whether laws are based on morals is that the relationship runs in both directions: legal systems borrow heavily from shared ethical convictions when defining serious wrongs, ignore morality entirely for purely practical rules, and sometimes reshape public morality by codifying new standards. Prohibitions on murder and theft track near-universal ethical judgments. Which side of the road you drive on does not. Between those extremes sits most of the legal code, and the question of how much moral content law should carry has been argued for centuries without a tidy resolution.

The Two Classic Answers

Two philosophical traditions give opposite answers to the searcher’s question, and both still shape how lawyers, judges, and legislators think.

Natural Law: Law Must Reflect Moral Truth

Natural law theory holds that a legal system draws its authority from a deeper moral order. Cicero argued that true law is right reason in harmony with nature, universal across cultures and unchanging over time. Thomas Aquinas built on that foundation, arguing that human-made rules only carry genuine authority when they participate in a universal moral order. The Latin maxim lex iniusta non est lex captures the position bluntly: an unjust law is no law at all.

This is not just abstract philosophy. Abolitionists who helped enslaved people escape in violation of the Fugitive Slave Act of 1850 relied on exactly this reasoning, treating the statute as so morally bankrupt that compliance itself was the wrongful act. The same thinking surfaces today whenever a lawyer argues that a technically valid statute violates fundamental fairness or human dignity.

Legal Positivism: Law Is What Was Properly Enacted

Legal positivism takes the opposite view. A law’s validity depends on whether it was passed through the recognized process by the authorized body. If the legislature followed proper procedure, the result is law, whether or not it is morally admirable. This is the “separation thesis”: legal validity and moral merit are two independent questions.

H.L.A. Hart, the most influential positivist of the twentieth century, argued that confusing “the law as it is” with “the law as it ought to be” creates more problems than it solves. Moral evaluation matters, in his view, but it is a separate exercise from identifying what the law actually requires. Lon Fuller pushed back in the 1950s, arguing that law has an “inner morality” made up of procedural requirements like clarity, consistency, and prospectivity. A regime that enacts secret laws or retroactive punishments fails as a legal system on its own terms.

Positivism carries a practical consequence for judges: their job is to apply the text the legislature wrote, not to rewrite it according to personal ethics. Even so, one moral guardrail survives. When a criminal statute is genuinely ambiguous, the rule of lenity requires courts to resolve the ambiguity in the defendant’s favor. That prevents judges from effectively creating new crimes through aggressive interpretation.

Where Morality Is Built Into Actual Law

Move from theory to the code itself and moral content is easy to spot. Federal homicide statutes treat the unlawful killing of another person as the most serious offense, with first-degree murder carrying life imprisonment or death and lesser gradations for second-degree murder, voluntary manslaughter, and involuntary manslaughter.1Office of the Law Revision Counsel. 18 USC Chapter 51 – Homicide Federal robbery is punished separately, codifying the value placed on personal security and property.2Office of the Law Revision Counsel. 18 USC Chapter 103 – Robbery and Burglary The escalating severity across categories is not arbitrary. It tracks how morally culpable society considers each act.

The Guilty Mind Requirement

Criminal law does not just ask what you did. It asks what was going on in your head when you did it. This concept, called mens rea, is where moral judgment gets built into the structure of criminal liability itself. Most jurisdictions work with a four-level hierarchy of mental states, each reflecting a different degree of blame:

  • Purposely, meaning you intended the specific result.
  • Knowingly, meaning you were practically certain your conduct would cause it, even if you did not want it.
  • Recklessly, meaning you were aware of a substantial risk and chose to ignore it.
  • Negligently, meaning you were not aware of the risk but should have been.

The difference between a reckless killing and a purposeful one can mean decades of prison time, because the system treats deliberate wrongdoing as fundamentally worse than carelessness. That graduated scale mirrors how most people instinctively assign moral blame.

Good Faith and the Duty of Care

Civil law carries moral expectations too. The Uniform Commercial Code requires good faith in the performance and enforcement of every contract, meaning parties cannot exploit technicalities to undercut the purpose of a deal even when the contract language does not explicitly forbid it.3Legal Information Institute (LII) at Cornell Law School. UCC 1-304 – Obligation of Good Faith The obligation applies to performance, not to pre-contract negotiations, so the moral floor kicks in once you have made the commitment.

Tort law runs on a similar foundation. If your carelessness injures someone, you owe compensation. A property owner who knows about a broken staircase and ignores it can be held liable for a visitor’s injuries. The principle is that you have a duty not to create unreasonable risks for the people around you, and the legal system holds you financially accountable when you fail.

The Limit: Moral Disapproval Alone Is Not Enough

Not every moral judgment becomes law, and the reason is a filter usually traced to John Stuart Mill’s harm principle: the state may restrict individual freedom only to prevent harm to others. Private choices that do not produce tangible damage to anyone else generally stay outside the law’s reach. Reckless driving is regulated because it endangers pedestrians and other motorists. What you eat, whom you associate with, or how you spend your free time generally is not.

The question of how far moral disapproval alone can justify criminal punishment came to a head in the Hart-Devlin debate of the late 1950s and 1960s. Lord Patrick Devlin argued that shared morality is the glue holding society together and that the law has a legitimate role in enforcing it, even for private conduct. Hart, applying Mill, argued that mere disapproval without demonstrable harm is not enough. The Supreme Court eventually landed closer to Hart in Lawrence v. Texas (2003), striking down sodomy laws and rejecting the idea that moral disapproval alone could sustain a criminal statute targeting private behavior between consenting adults.

So laws draw on morals, but not on every moral. The harm principle screens out the ethical preferences that lack a victim.

Law Changes as Morals Change

The relationship also runs the other way. Legal codes shift as moral consensus shifts, sometimes gradually and sometimes in dramatic lurches. Environmental regulation moved from minimal industrial oversight to strict emission standards over the past half-century, tracking a growing ethical commitment to ecological preservation and public health. Conduct once treated as an acceptable cost of doing business is now treated as a harm worth preventing.

Civil rights law tells a similar story on a compressed timeline. Statutes that once enforced racial segregation were dismantled and replaced by laws requiring equal treatment. That did not happen because legislators read a new philosophy textbook. It happened because sustained social movements shifted the moral baseline of the broader culture until the old laws became politically unsustainable. Law follows morals here, but law also locks the new baseline in and teaches the next generation what counts as acceptable, so the influence flows both ways.

Where the Law Makes Room for Moral Refusal

In a few areas, the legal system does not just tolerate moral disagreement with the law but actively protects it.

Federal law has long recognized conscientious objection to military service. Under the Military Selective Service Act, individuals who oppose participation in war based on deeply held moral or religious beliefs can be exempted from combat duty, though they may be assigned to alternative civilian service.

Healthcare is another area. The Church, Coats-Snowe, and Weldon Amendments collectively protect healthcare workers who refuse to participate in procedures that conflict with their moral or religious convictions.4Department of Health and Human Services (HHS). Fact Sheet – Safeguarding the Rights of Conscience as Protected by Federal Statutes The statute covering sterilization and abortion refusals, at 42 U.S.C. ยง 300a-7, prohibits institutions receiving federal funds from requiring employees to participate in procedures contrary to their beliefs, and the protections extend to convictions rooted in either religious faith or secular moral principles.5Office of the Law Revision Counsel. 42 USC 300a-7 – Sterilization or Abortion

The most dramatic collision happens inside the jury room. Jury nullification occurs when jurors deliberately refuse to convict a defendant despite clear evidence of guilt, because they believe the law itself is unjust. A “not guilty” verdict cannot be overturned. Courts have consistently held that nullification is not a sanctioned function of the jury, and defense attorneys cannot explicitly encourage it, but the power exists whether the system endorses it or not. Historically it has cut both ways. Northern juries in the 1850s refused to convict people who violated the Fugitive Slave Act. Southern juries also nullified by refusing to convict white defendants for violence against Black citizens. The same moral override that can serve justice can obstruct it.

Taken together, the picture is neither pure natural law nor pure positivism. Legislatures encode moral judgments about serious wrongs, screen out disapproval that lacks a victim, revise the code as public morality shifts, and leave narrow openings for individuals whose consciences will not go along. Whether that arrangement counts as laws being “based on” morals depends on how much of the code you look at and how strictly you define the word.