1 December 2026
In 2016, a driver in Florida became the first person killed while using a partially automated driving system. The car's sensors detected a crossing truck ahead but the system did not brake in time. The human behind the wheel was not watching the road. That collision, and others like it, pushed a quiet academic debate into the public square: when a machine must choose between harms, who decides what it should do?
Autonomous vehicles (AVs) are often framed as a safety technology. Remove the distracted, tired, impaired human and crashes will fall. That framing is true as far as it goes, but it hides a harder problem. Driving is full of moments where every available outcome is bad. A child chases a ball into the road. A cyclist swerves around a pothole. A pedestrian steps out from behind a parked van with no warning. A human driver reacts in fractions of a second, guided by instinct, habit, and luck. An AV must react according to code that someone wrote, tested, and approved. The ethics are not a side issue. They are baked into the product.
This article looks at how AVs actually confront impossible choices, why the famous thought experiments mislead us, and what engineers, regulators, and buyers should demand before trusting a machine with moral decisions at highway speed.

The Trolley Problem Is Not the Real Problem
The trolley problem is the go-to reference in every AV ethics discussion. A runaway trolley heads toward five people. You can pull a lever to divert it onto a side track where it kills one. What do you do? Variants add bridges, fat men, and loops. The thought experiment is famous because it isolates a moral intuition: is it better to do nothing and allow five deaths, or act and cause one?
It is a useful teaching tool and a poor engineering guide. Here is why.
First, AVs do not face clean, binary levers. They face probabilistic, noisy sensor data. The car does not know there are exactly five people on the track. It has a lidar return that might be a pedestrian, a shadow, a trash bag, or a reflection, and it has a confidence score attached. The ethical decision is not "five versus one." It is "brake hard on a wet road with a 70 percent confidence that the object ahead is a person, risking a rear-end collision from the truck behind, or swerve into a lane where a motorcycle may or may not be present."
Second, the trolley problem assumes perfect knowledge of outcomes. Real AVs cannot know that swerving left will kill exactly one person and swerving right will kill exactly five. They estimate. A system that treats uncertain estimates as certainties is not just unethical. It is dangerous.
Third, the trolley problem is a one-off. Driving ethics are continuous. Every second, the car makes small trade-offs: following distance, speed through a yellow light, how aggressively to merge. A string of tiny, defensible decisions can add up to a pattern that is reckless in aggregate. Ethics in AVs is less about dramatic dilemmas and more about the distribution of risk across thousands of uneventful miles.
The practical takeaway: regulators and the public should stop asking "what would the car do in a trolley scenario" and start asking "how does the car allocate risk in ordinary situations, and who bears that risk?" That is the question that actually shapes outcomes on the road.
Risk Allocation Is the Core Ethical Decision
Every AV has a risk budget. It cannot eliminate all harm, so it must decide where to put the residual risk. This is the central ethical choice, and it is usually invisible to the passenger.
Consider a simple case. A car is traveling at 50 km/h on a two-lane road. A ball rolls into the street from between parked cars. A child may follow. The system has three broad options:
- Brake hard in its lane. Risk: rear-end collision if a tailgater is behind, and the child may still be hit if they enter the road.
- Swerve toward the oncoming lane. Risk: head-on collision with a car that may be approaching.
- Swerve toward the curb. Risk: hitting a parked car, a cyclist, or a pedestrian on the sidewalk.
Each option shifts risk between the child, the AV's occupants, other road users, and bystanders. There is no option that is risk-free. The car's software must rank these outcomes, and that ranking is a value judgment, not a physics calculation.
The ethical question is who gets to make that ranking. The manufacturer? The regulator? The owner? The person who happens to be in the car? Each answer produces a different distribution of harm, and each has defenders.
The passenger-protection instinct
Most buyers implicitly assume the car will protect them first. That is a reasonable expectation for a product you purchase. But if every AV is programmed to prioritize its occupants, then AVs become more dangerous for pedestrians and cyclists than human drivers who at least sometimes swerve to avoid them. A road full of occupant-first AVs could shift harm onto the most vulnerable road users. That is a collective-action problem, not a personal one, and it cannot be solved by individual purchase decisions.
The utilitarian instinct
The opposite approach minimizes total harm. In a forced choice, the car sacrifices its occupants to save a larger number of others. This sounds noble until you ask who would buy a car that is programmed to kill them in a specific scenario. The market answer is: almost nobody. A manufacturer that ships occupant-sacrificing logic and advertises it will lose sales. A manufacturer that ships it silently is making a decision on the buyer's behalf without consent.
The "stay in your lane" instinct
A third approach says the car should never deliberately leave its lane or target a specific person. It brakes, it warns, it does its best, but it does not "choose" a victim. This has real appeal because it avoids the darkest version of the problem: a machine that deliberately steers toward one person to save another. But it is not neutral. Staying in the lane still allocates risk, often to whoever is directly ahead. "Do nothing special" is still a policy.
None of these instincts is obviously correct. The honest position is that AV ethics is a distributional problem with no clean solution, and any company or regulator that claims otherwise is oversimplifying.

Why "Programming Morality" Is Harder Than It Sounds
Even if we agreed on the right principle, implementing it is a separate challenge. Several practical obstacles make moral programming genuinely difficult.
Sensors do not deliver moral facts
A camera sees pixels. A lidar sees points. A radar sees returns. Turning those into "pedestrian," "cyclist," "child," "elderly person," or "dog" requires classification, and classification is probabilistic. The car does not know the age of the person ahead. It estimates height, posture, and motion. If the ethical rule depends on distinguishing a child from an adult, the system will sometimes be wrong, and the consequence of a wrong classification could be catastrophic. Building ethics on top of uncertain perception is building on sand.
Rules do not compose well
Simple rules sound reasonable in isolation. "Never hit a pedestrian." "Always protect occupants." "Minimize total harm." Combine them and you get conflicts. A rule set that resolves every conflict in advance becomes enormous and brittle. A rule set that leaves gaps pushes the hard cases to runtime, where the car has milliseconds to decide. Neither is satisfying. This is a known problem in AI safety: specifying human values precisely enough to govern behavior in all cases is extremely difficult, and AVs are a concrete instance of it.
The long tail of edge cases
Most driving is routine. The ethical dilemmas live in the long tail: rare combinations of weather, road geometry, sensor failure, and human unpredictability. You cannot test every edge case on a track. You cannot even enumerate them. This is why AV developers rely on simulation, and why simulation is itself an ethical battleground. Whoever designs the simulated scenarios decides which dilemmas get attention and which get ignored. The scenario library is a moral document, whether or not anyone calls it that.
Accountability is diffuse
When a human driver makes a terrible split-second choice, we have a person to blame, question, and prosecute. When an AV does, the chain of responsibility runs through a perception team, a planning team, a safety team, a legal team, a regulator, and possibly a remote operator. Diffuse accountability is a real problem. It can make it harder to correct bad behavior, because no single party owns the outcome. It can also make it easier for companies to hide behind process. Good AV governance has to assign clear responsibility even when the technical causation is spread across many contributors.
Real-World Signals Worth Watching
We do not need to invent examples. The public record already contains instructive cases.
The 2018 fatal collision in Tempe, Arizona, involved an automated test vehicle that struck a pedestrian walking a bicycle across a multi-lane road at night. Investigators found that the system detected the pedestrian several seconds before impact but did not classify her correctly in time, and the backup driver was not monitoring. The case is often summarized as a sensor failure. It is also an ethics case: the system's design assumed a safety driver would catch what the software missed, and that assumption failed. The ethical lesson is about redundancy and about what "human backup" actually means in practice. A backup who is not actively engaged is not a backup.
The 2016 Florida crash mentioned earlier is another signal. A partially automated system failed to brake for a crossing truck while the driver was disengaged. The National Transportation Safety Board found that the system's operational design allowed drivers to disengage from the driving task in ways the manufacturer had not adequately constrained. That is an ethics-of-design issue: the product's behavior encouraged a level of trust the technology could not support.
These cases share a pattern. The failures were not exotic moral dilemmas. They were ordinary situations where the system's assumptions about human behavior, sensor reliability, or operating conditions did not hold. The ethical risk in AVs is concentrated in exactly these gaps between design assumptions and reality.
What Good AV Ethics Actually Looks Like in Practice
Given all this, what should engineers, regulators, and buyers actually do? Here is a practical framework.
1. Make the risk allocation explicit and auditable
Companies should publish, at least at a high level, how their systems prioritize different road users in conflict scenarios. Not the source code, but the policy: does the car prioritize occupants, minimize total harm, or follow a stay-in-lane rule? Regulators should require this disclosure. Buyers should ask for it. A company that cannot articulate its risk policy in plain language has not thought it through, or is hiding it.
2. Treat perception uncertainty as a first-class ethical input
Any decision logic that ignores confidence scores is unsound. The car should behave more conservatively when its perception is uncertain, not less. This sounds obvious, but it has real design implications: conservative behavior under uncertainty means slower speeds in ambiguous conditions, larger following distances, and more willingness to yield. Those choices have costs in traffic efficiency, and companies should be honest about the trade-off rather than tuning for smoothness and calling it safety.
3. Design for the human in and around the car
Ethics is not only in the planner. It is in the human-machine interface. Does the car communicate its intentions to pedestrians and cyclists? Does it behave predictably at crosswalks? Does the handover to a human driver happen with enough warning and context for the human to actually take over? A system that is ethically sound in simulation but confusing on the street is not ethically sound. Predictability is a moral virtue in traffic.
4. Build accountability into the operating model
Who is responsible when the car makes a bad call? The answer should be written down before deployment, not litigated after a crash. That means clear rules for remote operators, clear logging of decisions, and clear lines of regulatory authority. It also means companies should not be able to hide behind "the algorithm decided." Algorithms do not decide. People design them, train them, test them, and deploy them.
5. Use simulation to stress-test values, not just physics
Simulation is usually framed as a way to rack up miles cheaply. It is also a way to test ethical policies. Developers should build scenario libraries that include vulnerable road users, ambiguous perception, sensor degradation, and conflicting rules, and they should evaluate how different policy choices distribute harm. This is uncomfortable work because it forces the team to confront trade-offs they would rather avoid. That discomfort is the point.
Common Mistakes and Misconceptions
A few recurring errors are worth naming directly, because they distort the public conversation.
Mistake: Treating AV ethics as a solved problem. It is not. The academic literature is rich, but deployment practice is still catching up. Anyone who says the ethics are settled is selling something.
Mistake: Assuming more data solves the moral question. More data improves perception and prediction. It does not tell you whose safety to prioritize. That is a values question, and values do not emerge from datasets.
Mistake: Believing human drivers are the ethical baseline. Humans are often kind, sometimes heroic, and frequently terrible. Using human behavior as the benchmark for AV ethics sets a low bar and ignores the ways AVs could be better, for example by never driving drunk, never texting, and never getting road-ragey.
Mistake: Conflating legal compliance with ethical behavior. A system can be legal and still cause avoidable harm. Regulation is a floor, not a ceiling.
Misconception: AVs will eliminate crashes. They may reduce many categories of crashes, especially those caused by human error. They will not eliminate all of them, and they will introduce new failure modes. The ethical goal is not zero risk, which is impossible. It is a defensible distribution of risk and honest communication about it.
The Road Ahead
The ethics of autonomous vehicles will not be settled by a single breakthrough or a single regulation. It will be settled by thousands of small decisions: which scenarios get tested, which policies get published, which trade-offs get disclosed, and which failures get taken seriously. The technology is impressive. The moral work is slower and less glamorous, and it matters more.
For engineers, the practical advice is to treat risk allocation as a design requirement from day one, not a compliance checkbox at the end. For regulators, the advice is to demand transparency about policy, not just performance metrics. For buyers and the public, the advice is to ask better questions. Not "can it drive itself" but "how does it decide who to protect, and who decided that?"
The algorithm will make impossible choices. The least we can do is make sure those choices are made deliberately, disclosed honestly, and open to correction. That is what ethical technology looks like in practice, and it is the standard AVs should be held to.