Set against the backdrop of the war in Afghanistan, the story begins when Staff Sergeant Clint Romesha, played by Scott Eastwood, and a fresh contingent of soldiers arrive at the remote PRT Kamdesh. This precarious outpost is under the command of CPT Benjamin D. Keating, portrayed by Orlando Bloom. Early tensions and the brutality of war are immediate; while SPC Michael Scusa, played by Scott Alda Coffey, manages to save a dog from being shot, the unit must constantly fend off aggressive Taliban attacks. Internal friction also boils over, as Staff Sgt. Justin T. Gallegos, played by Jacob Scipio, assaults PFC Yunger, played by Alfie Stewart, for firing far too close to his head, and SGT Brad Larson, played by Henry Lloyd-Hughes, has to reprimand Specialist Ty Michael Carter, played by Caleb Landry Jones, for arguing during the heat of a firefight.
In an attempt to stabilize the region, CPT Keating organizes a shura, offering local elders financial incentives for infrastructure projects in exchange for lasting peace. However, the peace is fragile; a gunshot residue test reveals that a local man was involved in a previous day's attack, though he and others eventually surrender their weapons. In a fateful moment, Keating offers to drive a large LMTV through the narrow, treacherous mountain roads. While Romesha and Carter scout the path ahead, the vehicle loses its footing and plunges off a cliff, resulting in the tragic death of CPT Keating.
The command then falls to CPT Robert Yllescas, played by Milo Gibson. Following another attack, Yllescas sends out a patrol, during which Romesha provides a detailed analysis of how he would personally mount an assault on the vulnerable outpost to expose its weaknesses. Meanwhile, Sgt. Josh Kirk, played by Jack Kesy, apprehends a local man who had been paid by the elders to take surveillance photographs of the base. This betrayal leads Yllescas to withhold the money previously promised by Keating. Despite warnings from the base's Afghan interpreter, Mohammed, played by Sharif Dorani, regarding a looming large-scale offensive, the concerns are dismissed. Tragedy strikes again when Yllescas is killed by a bomb while patrolling a bridge with Yunger. A devastated Yunger is nearly driven to suicide, but Romesha manages to talk him down and ensures he is extracted from the outpost along with the body of Yllescas.
CPT Sylvanius Broward, played by Kwame Patterson, takes charge of the base and reveals that the location will soon be closed. Even when an Afghan ID is discovered near the bridge—likely belonging to the bomber—Broward refuses to allow Romesha and his men to conduct searches in the nearby villages. This leads to significant clashes between Romesha and Broward, as Romesha grows frustrated with the captain's rigid adherence to the rules of engagement. Furthermore, pressure from Afghan President Karzai forces a postponement of the base's closure. Feeling the weight of poor leadership, Carter approaches Lt. Andrew Bundermann, played by Taylor John Smith, to express the men's concerns, but he is coldly rebuffed.
The situation worsens during a nighttime attack, which reveals that the insurgents have upgraded their arsenal with mortars and night vision equipment. The following day, local elders bring the body of a young girl, claiming she was killed by an American counterattack—a claim that is later revealed to be fraudulent. Despite this, Broward agrees to compensate them and, in a cruel turn, shoots Scusa's dog after it bites an elder. As the soldiers attempt to relieve stress by waterboarding one another, Broward announces he has been relieved of command and the base will officially close in October. Left in charge, Bundermann orders a strict communications blackout regarding their departure, even as the soldiers make final, emotional calls to their families.
On the morning of October 3, 2009, the nightmare begins. Mohammed alerts the base that the villagers have vanished and hundreds of Taliban fighters have completely surrounded the outpost. A massive firefight erupts, causing the Afghan National Army forces to flee in panic. In the chaos, PFC Kevin Thomson, played by Bobby Lockwood, and Scusa are killed. Gallegos and several other soldiers find themselves pinned down inside an armored vehicle; Romesha is wounded while attempting to reach them. Upon learning that Sgt. Josh Kirk has been killed, Romesha manages to eliminate a Taliban sniper. In a desperate attempt to help, SGT Josh Hardt, played by Jack DeVos, SPC Chris Griffin, played by Alexander Arnold, and PV1 Ed Faulkner, played by Will Attenborough, try to reach Gallegos' position, but their vehicle becomes stuck. They soon realize the Taliban have successfully breached the perimeter. Both Griffin and Hardt are killed in the onslaught. Romesha eventually reaches the TOC and convinces Bundermann that they must fight to retake the base.
Providing critical covering fire, Larson and Carter allow the trapped soldiers to escape the armored vehicle. However, the cost is high: Gallegos and Sergeant Vernon Martin, played by Cory Hardrict, are killed. Despite enduring heavy gunfire, Carter courageously rescues a wounded SPC Mace. Romesha then leads a group of men in a successful push to secure the front gate just as air support arrives. A B-1 bomber unleashes its payload on the Taliban positions, creating a window for Carter and Larson to carry Mace to the aid station. There, CPT Cordova uses his own blood and that of others to perform a desperate transfusion on Mace. Finally, CPT Stoney Portis, played by Trey Tucker, arrives with a quick reaction force to dispatch the remaining insurgents.
As the remaining soldiers are evacuated by helicopter, the base is demolished with explosives. In a final blow, the men learn that Mace did not survive his injuries. The Battle of Kamdesh left 27 Americans wounded and 8 dead. In recognition of their extraordinary bravery, Romesha and Carter were both awarded the Medal of Honor, marking them as members of what would become the most decorated unit of the entire war.