There are films that are great. There are films that are important. And then there is Casablanca โ a film that, according to every metric we can compute, achieves a level of structural perfection that no other screenplay in our database of 4,800 scripts has matched.
When we process the Casablanca screenplay through the Hollywood Metrics analytical engine, it returns a composite score of 98/100. Not 98 because we rounded up. 98 because across 20 independent structural measurements โ each weighted by its empirical correlation with critical and commercial outcomes โ this screenplay from 1942 hits the optimal range on nearly every single one.
That is not nostalgia talking. That is mathematics. Here is what the numbers reveal.
Act Structure: The Metronomic First Act
The most striking feature of Casablanca's structure is the contrast between its acts. The first act โ roughly the first 30 pages, covering Rick's establishment as a cynical neutral party in wartime Morocco โ exhibits one of the lowest scene length variance coefficients in our entire database: 0.22.
That means the scenes in act one are remarkably uniform in length. They run approximately two to three pages each, with minimal deviation. This is unusual for an S-Tier screenplay (where the average variance is 0.72), and it is deliberate. The uniform scene length creates a rhythmic baseline โ a steady emotional pulse that establishes the world, introduces the ensemble, and sets audience expectations for a measured, controlled narrative.
It is the structural equivalent of a jazz musician establishing the tempo before improvisation begins. The audience settles into the rhythm without realizing they are being calibrated for what comes next.
The Third-Act Explosion
Having established that metronomic baseline, Casablanca's third act detonates it. Scene length variance in the final act spikes by 400% โ to a coefficient of 0.88, well above the S-Tier average.
The scenes alternate between rapid-fire exchanges of two or three lines and extended confrontations that run five or six pages. The airport sequence alone contains seven scene fragments of varying length, each building on the last, the rhythm accelerating and decelerating like a heartbeat under stress.
The emotional impact is directly measurable in our sentiment data. The sentiment arc slope in Casablanca's third act registers +0.51 โ one of the steepest positive recoveries in our database. The audience moves from the despair of Rick's apparent surrender to the triumph of his sacrifice in a structural crescendo that our data shows is almost unmatched.
The genius is not that the third act is intense. The genius is that the first act was so deliberately restrained that the intensity has somewhere to go.
Dialogue Efficiency: 14 Words That Changed Everything
Perhaps the most celebrated aspect of Casablanca is its dialogue โ lines so iconic they have entered the language itself. "Here's looking at you, kid." "Of all the gin joints in all the towns in all the world, she walks into mine." "I think this is the beginning of a beautiful friendship."
What makes these lines work structurally is not their poetry but their brevity. The average dialogue block in Casablanca is just 14 words long. For a drama of its era โ when the genre average was 28 words per dialogue block โ that is extraordinarily short.
The effect is a rapid-fire, almost musical cadence to the character interactions. Rick and Ilsa do not deliver speeches to each other. They trade volleys. The short dialogue blocks create a rhythm of call-and-response that drives every scene forward with the urgency of a tennis match, even when the characters are standing still in a room.
When we measure dialogue density (the number of individual dialogue blocks per page), Casablanca registers 11.2 blocks per page โ placing it in the top 3% of all dramas in our database. More individual exchanges means more opportunities for emotional shift, more moments of tension, more space for subtext between the lines.
Character Load: The Perfect Ensemble
Modern screenwriting advice often emphasizes the protagonist's journey above all else. Casablanca suggests a different approach. While Rick Blaine is unquestionably the central character, our character load analysis reveals that the film's dialogue is distributed with unusual breadth:
- Rick: 31% of total dialogue
- Ilsa: 14%
- Renault: 16%
- Laszlo: 9%
- Others (ensemble): 30%
The top three characters hold just 61% of total dialogue โ right at the boundary where our model transitions from "protagonist-driven" to "ensemble-balanced." This distribution gives every significant character enough screen presence to feel three-dimensional while maintaining Rick as the emotional anchor.
Captain Renault is the key. His 16% dialogue share โ nearly matching the romantic lead โ transforms him from a supporting character into a structural counterweight to Rick. Their verbal sparring provides the film's comedic rhythm and its emotional resolution ("Beautiful friendship"), and without Renault's share of the dialogue, the entire emotional architecture would tilt into melodrama.
Sentiment Architecture: Controlled Turbulence
When we map Casablanca's sentiment values scene by scene, the pattern is textbook S-Tier โ but executed with unusual precision.
The first act oscillates gently between neutral and mildly negative sentiment. Humor (positive spikes from Renault's witticisms) alternates with foreboding (negative dips from references to the war, the refugees, the desperation of the setting). The sentiment turbulence in act one registers 9.4 reversals per ten pages โ moderate, controlled, establishing range without exhausting the audience.
The second act โ Ilsa's arrival and the unraveling of Rick's neutrality โ shows a sharp increase. Turbulence climbs to 16.8 reversals per ten pages, nearly double the first act. The emotional shifts become more extreme and more frequent: the flashback to Paris (strongly positive), the confrontation in Rick's apartment (strongly negative), the competing requests for the letters of transit (oscillating tension).
The third act resolves at 18.2 reversals per ten pages โ among the highest we have measured โ but with a clear directional trend. Despite the rapid oscillation, the sentiment arc slopes unmistakably upward, carrying the audience through doubt and sacrifice toward the film's iconic resolution.
The Vocabulary Signature
One final metric deserves attention. Casablanca's vocabulary richness score โ measuring the diversity of word choice across the entire screenplay โ is 0.41, placing it in the top 2% of all scripts in our database.
This is particularly remarkable given the 14-word average dialogue length. The screenplay achieves linguistic diversity not through long, elaborate speeches but through precise word selection across thousands of short exchanges. Every line uses different language. There is almost no repetitive phrasing. Characters have distinct vocabularies that differentiate them without exposition.
The combination of short dialogue and high vocabulary richness is statistically rare โ most scripts achieve one at the expense of the other. Casablanca achieves both simultaneously, and our data suggests this combination is one of the strongest predictors of enduring critical acclaim.
What 98/100 Actually Means
A score of 98/100 does not mean Casablanca is "the best film ever made" โ that is a subjective judgment no algorithm should attempt. What it means is that across 20 measurable structural dimensions, this screenplay achieves optimal values more consistently than any other script we have analyzed.
It means that in 1942, three screenwriters โ Julius Epstein, Philip Epstein, and Howard Koch โ working under extraordinary time pressure with a script that was being rewritten during production, somehow produced a document whose structural geometry would, eight decades later, register as mathematically near-perfect when measured against the outcomes of 20,000 subsequent films.
That is not luck. That is craft operating at a level so refined it produces results indistinguishable from mathematical optimization. And that, more than any quote or scene or performance, is why Casablanca endures.
See the full feature breakdown for any screenplay in the Hollywood Metrics Analyze lens.
