The B-17 Bomber That Tried to Become a Fighter: The YB-40’s Legacy

On May 29, 1943, Captain James Hartwell climbed into the cockpit of his B-17 at RAF Alenberry.

At just 26 years old, he had already completed 42 combat missions, more than most crews would ever fly.

However, the aircraft he was about to take into the sky that day was unlike any other.

It was the YB-40, a bomber designed to protect bombers, and it looked like a flying fortress.

Brimming with firepower, it boasted 16 .50 caliber machine guns aimed in every direction, ready to defend against enemy attacks.

thumbnail

On paper, the concept was brilliant.

But by summer’s end, it would be deemed a catastrophic failure.

To understand the YB-40’s inception, one must look back at the dire situation faced by the Eighth Air Force in early 1943.

The Eighth Air Force was suffering heavy losses, with every mission into Germany feeling like a death sentence.

B-17 crews understood the grim reality: half of them wouldn’t survive to complete 25 missions—the magic number that would allow them to return home.

But most men never saw that number; they perished over Hamburg, Schweinfurt, and Bremen, falling victim to flak and enemy fighters before reaching their targets.

The command knew the cause of these losses; the P-47 Thunderbolts and P-51 Mustangs, the fighters meant to protect the bombers, lacked the necessary range.

They could escort formations to the French coast, perhaps a hundred miles into Germany if they were lucky, but then they had to turn back, leaving the bombers vulnerable.

That’s when the Luftwaffe struck.

German fighter tactics were brutally effective.

Messerschmitt 109s and Focke-Wulf 190s didn’t waste time with elaborate dogfights.

They came in fast and hard, attacking from 12 o’clock high, where the B-17’s defensive guns couldn’t track them effectively.

The waist gunners were rendered useless, and the tail gunner found himself facing the wrong direction.

By the time the top turret gunner swung around, the enemy fighter had already passed, often firing 20 mm cannon shells straight through the cockpit.

Entire formations were decimated; during a mission to Regensburg in August 1943, the Eighth Air Force lost 60 bombers in a single day—600 men gone in an instant.

Desperate for a solution, headquarters knew they needed to act quickly.

The strategic bombing campaign against Nazi Germany was on the brink of collapse.

If they couldn’t protect the bombers, they couldn’t bomb the factories, and if they couldn’t bomb the factories, the war in Europe would drag on for years.

Fighter escorts capable of reaching the targets were still two years away.

So, someone at Wright Field in Ohio had a radical idea: if fighters couldn’t escort the bombers all the way to the target, why not turn a bomber into a fighter?

Not a replacement, but an escort, a gunship—a flying fortress that could accompany the formation throughout the entire mission, absorb enemy attacks, shoot down German fighters, and give the bomb-laden B-17s a chance to reach their targets and return home alive.

Thus, the YB-40 program was born, and on paper, it appeared to be a viable solution.

In February 1943, Douglas Aircraft received an urgent contract to transform a standard B-17 into the most heavily armed bomber in the world.

Engineers worked tirelessly, ripping out the bomb bay and converting it into a massive ammunition storage bunker capable of holding 11,000 rounds of .50 caliber ammunition—enough to sustain a prolonged fight without reloading.

They installed a new twin .50 caliber chin turret directly under the nose, specifically designed to counter those deadly frontal attacks.

Behind the cockpit, they added a second dorsal turret right behind the radio room, providing overlapping fields of fire.

The waist guns were doubled, with four guns instead of two, and extra cheek guns were mounted in the nose windows.

The tail turret was completely redesigned with the new Cheyenne model, offering better visibility and more protection for the tail gunner.

Armor plating was added around the gunner positions, reinforced bulkheads were constructed, and thicker glass was installed in the turrets.

They weren’t just building a bomber; they were constructing a flying tank.

The result was a YB-40 that weighed 4,000 pounds more than a standard B-17 but was armed with 16 .50 caliber machine guns and enough ammunition to fend off an entire Luftwaffe squadron.

It looked unstoppable.

Douglas built 12 YB-40s and shipped them to England in April 1943.

The 92nd Bomb Group received them at RAF Alenberry, and the crews who saw them for the first time were left in awe.

Gunners ran their hands over the chin turret, grinning, while pilots whistled in admiration.

This aircraft was a monster.

Captain James Hartwell’s crew drew aircraft number 425738, which they named Hedgehog.

On May 29, 1943, the briefing room at Alenberry was packed with smoke hanging thick in the air.

Maps covered the walls, blue lines marking the route and red circles indicating flak zones.

The target was San Nazaire, France—the submarine pens where German U-boats were refueled and rearmed before heading back into the Atlantic to sink Allied convoys.

The mission commander laid out the plan: 168 B-17s would hit the pens, while the YB-40s, including Hartwell’s Hedgehog, would fly alongside the formation, positioned to intercept German fighters before they could reach the bombers.

The briefing officer called it a historic test, but Hartwell had his reservations.

He leaned over to his co-pilot, Lieutenant Frank Benson, and whispered, “Let’s hope this thing flies better than it looks heavy.”

Benson didn’t laugh.

At 1:50 p.m., the engines roared to life, and one by one, the bombers taxied to the runway.

Hartwell pushed the throttles forward, and Hedgehog began to roll slowly.

But the extra weight made every movement sluggish.

The tail lifted late, and the wheels clung to the runway longer than usual.

When they finally lifted off, the climb rate was pitiful.

A standard B-17 could reach a bombing altitude of 20,000 feet in about 25 minutes, but Hedgehog took 48—nearly twice as long.

Hartwell felt the heaviness in the controls.

The yoke was unresponsive, and the aircraft wanted to wallow rather than climb.

Every adjustment required more effort, and the engines were already running hot.

But they made it.

By 3:30 p.m., the formation was assembled over the English Channel, and the YB-40 had taken its position on the edge of the group, the most exposed position where German fighters would hit first.

Hartwell keyed the intercom.

“All gunners, check your weapons. Stay sharp. This is what we train for.”

In the chin turret, Sergeant Eddie Clark loaded the first belt of ammunition and chambered a round.

“Ready down here, Captain. Let’s see what this thing can do.”

At 4:02 p.m., the formation crossed the French coast.

Below them, the cliffs of Brittany stretched out, gray and jagged.

And then the flak started.

Black puffs of smoke erupted around them as 88 mm shells burst at altitude, each capable of shredding a bomber to pieces.

The formation tightened up, and radio chatter intensified.

“Bandits 11:00 high. I count six, no, eight contacts. Focke-Wulfs coming in fast!”

Hartwell saw them—six silver specks diving out of the sun, growing larger every second.

They were Focke-Wulf 190s, fast, deadly, and flown by some of the Luftwaffe’s best pilots.

They came in from behind, trying to pick off the tail-end bombers.

“Tail gunner, you see them?”

“Got them, Captain. 800 yards and closing.”

“Wait for it. Wait for it.”

The German fighters closed to 600 yards, then 500 yards.

“Now fire!”

The tail turret roared to life as twin .50 calibers hammered out rounds at 850 rounds per minute.

Tracers streaked across the sky.

The chin turret joined in, followed by the waist guns and dorsal turrets.

Hedgehog became a storm of lead.

For six solid minutes, the YB-40 performed exactly as designed.

Every attack broke off early, and enemy pilots kept their distance, unwilling to fly through that curtain of fire.

The bomber crews watching from nearby aircraft cheered over the radio.

“That thing’s a beast! Did you see that? Tore apart!”

For a moment, it looked like the flying destroyer might actually work.

At 4:47 p.m., the lead bombardier called, “Bombs away!”

One by one, the B-17s dropped their payloads—500-pound bombs tumbling through the sky toward the submarine pens below.

Just like that, each bomber became 4,000 pounds lighter, faster, and more maneuverable.

They began to climb.

But Hedgehog didn’t.

It still carried 11,000 rounds of ammunition—4,000 extra pounds it couldn’t drop, jettison, or get rid of.

Hartwell pushed the throttles to maximum power.

The engines screamed, and gauges crept into the red.

Coolant temperatures spiked, but the formation pulled away: one mile, three miles, five miles, seven miles.

Hedgehog was alone, and the German fighters knew it.

“Bandits inbound. 4 o’clock level, more at 9 o’clock. They’re everywhere!”

The Luftwaffe pilots had been watching.

They saw the heavy bomber fall behind.

They knew it was slow and couldn’t maneuver.

Now, they circled like wolves around wounded prey.

They attacked from every angle—high, low, head-on, and from the sides.

The gunners fought back with everything they had.

The chin turret never stopped firing, and brass casings piled up on the floor.

Barrels glowed red-hot.

One Focke-Wulf 190 misjudged its pass and flew too close.

The top turret gunner shredded its wing, sending it spiraling into the ocean.

But then another fighter came in from the right, cannon shells punching through the wing.

The hydraulic line to the right aileron exploded, spraying fluid across the fuselage, and the number three engine started losing orbital pressure.

For 90 brutal minutes, Hedgehog fought alone—90 minutes of dodging, weaving, firing, and praying.

They made it across the channel on three engines, leaking fuel with jammed trim tabs and a dead radio.

When they finally touched down at Alenberry at 7:13 p.m., the crew sat in silence for a moment before climbing out, legs shaking and faces pale.

Colonel William Reed was waiting on the hardstand.

He walked up to Hartwell, who was leaning against the fuselage, wiping sweat and oil from his face.

“Captain, your assessment?”

Hartwell looked at the damaged aircraft, at the scorched gun barrels, and at the holes in the wing.

He looked the colonel in the eye and said three words that ended the dream: “It can’t keep up.”

The Air Force didn’t give up immediately.

They tried again, employing different tactics and formations.

They paired the YB-40s in teams, positioned them in the center of the formation instead of the edges, and even attempted to have them drop their ammunition cans mid-flight to reduce weight.

Nothing worked.

Over the next three months, YB-40s flew 48 combat sorties across seven missions.

Every single time, the same problem arose: once the bombers dropped their loads, the YB-40s fell behind.

Each time, they fought their way home alone—outnumbered, outmaneuvered, and barely surviving.

In August 1943, the program was officially canceled, with a total cost of $5.6 million and total combat effectiveness of zero.

On paper, it was a complete failure—the most expensive mistake the Eighth Air Force ever made.

But within that failure lay something no one expected—something that would change the course of the war.

Engineers at Wright Field poured over the combat reports, trying to figure out what went wrong.

They noticed a pattern: every time a YB-40 faced a frontal attack—the deadliest threat to American bombers—it survived.

The new chin turret worked flawlessly, with two .50 caliber guns mounted directly under the nose, fully traversable and hydraulically powered.

There was no blind spot at 12 o’clock high, meaning German pilots couldn’t make a head-on run without flying straight into a wall of tracers.

Boeing saw the reports and the numbers, and in September 1943, they made a decision that would save thousands of lives.

They took the YB-40’s chin turret design and integrated it into production for their next model—the B-17G.

Everything changed.

Before the chin turret, frontal attacks accounted for nearly 40% of all bomber losses.

Luftwaffe pilots would come screaming in from 12 o’clock high, firing bursts of cannon shells straight through the cockpit before peeling away, leaving the defensive guns unable to react.

After the B-17G entered service, those frontal attacks became suicide runs.

Losses from head-on passes dropped by more than 70%.

Crews who once expected to die before completing their 25 missions began making it home.

Survival rates soared.

But the YB-40 gave the Flying Fortress more than just the chin turret.

Engineers adopted its staggered waist gun layout, giving gunners room to move without tripping over each other, thus improving accuracy and field of fire.

They also implemented the redesigned Cheyenne tail turret, which offered better visibility and more protection for the tail gunner.

Three innovations, three features born from a failed experiment—three changes that would define the B-17G, the most produced and famous version of the Flying Fortress ever built.

By the end of the war, over 8,600 B-17Gs had been constructed.

They flew over Berlin, Munich, and Hamburg, dropping more than 640,000 tons of bombs on Nazi Germany.

And every single one carried the DNA of the YB-40—the bomber that couldn’t keep up.

Captain James Hartwell completed his 25 missions in October 1943.

He survived the war and returned to the States as a flight instructor.

In the spring of 1944, he watched the first B-17Gs arrive at the training base in Florida.

New crews, fresh-faced kids barely 20 years old, gathered around the aircraft, pointing at the chin turret and asking where it came from.

Hartwell smiled, lit a cigarette, leaned against the wing, and told them the truth about the bomber that couldn’t keep up.

The kids laughed, thinking it was a joke, but Hartwell wasn’t joking.

He understood the truth: failure had saved their lives.

The YB-40 disappeared from history.

No museum preserved one, and no restoration project saved it.

All 12 aircraft were scrapped or converted back to standard bombers.

Yet its legacy lived on—in every B-17G that flew over Germany, in every crew that made it home, and in every gunner who fired that chin turret and watched a German fighter break off its attack.

History loves its heroes.

We build monuments to successes—the flying fortresses that endured brutal punishment and still brought their crews home, the Mustangs that escorted them to Berlin, and the men who flew 25 missions and returned alive.

But the YB-40 reminds us of something we often forget: sometimes, the most important victories come from failure.

Sometimes, the experiments that don’t work teach us more than the ones that do.

The flying destroyer didn’t win the war; it didn’t even survive the summer.

But the ideas it carried and the innovations born from desperation and refined through failure saved thousands of lives.

And perhaps that’s the real lesson: not that failure is acceptable, but that failure, when examined honestly and learned from deeply, can be the beginning of something greater.

The YB-40 proved that even disasters can leave behind legacies worth remembering.

If this story moved you, hit that like button so more people can discover it.

Subscribe for more forgotten stories of innovation, bravery, and the people who risked everything to test impossible ideas.

Drop a comment—tell us where you’re watching from or if someone in your family served in World War II.