As a time-travel story, the Back to the Future trilogy has a singular dilemma. The totality of the story takes place over the course of about 18 days: spread out over three different time periods and at least as many alternate universes. During that period, high schooler Marty McFly rockets back and forth between an escalating series of personal and cosmic crises before finally arriving back where he started, with seemingly no time gone at all.

That can make determining his age an extremely confusing endeavor, particularly since -- while the movies themselves cover only a short period of time -- they were made over the course of five years. That came on top of many cast members wearing make-up to represent their aging characters over the decades, and a few of them playing multiple characters to boot. Throw in star Michael J. Fox’s famously boyish looks, and the question is very legitimate. Just how old is Marty?

RELATED: Back to the Future’s Real-Life Drama Explains One Character's Sequel Absences

Back to the Future — Marty McFly

The events of the first Back to the Future film make it clear that he’s still in high school and that he’s old enough to drive. That gives a base age of 16-18. He’s also old enough to be trusted with Doc Brown’s lab space, which he uses to practice guitar. It suggests that, while young, he’s mature for his age, and Doc Brown shares a great deal of confidential information with him.

The character leaned into Fox’s persona at the time, which was being honed on his successful sit-com Family Ties. He gained notice as the precocious Reagan-esque eldest son of a pair of ex-hippies, and brought that energy with him to Back to the Future. Fox was born in 1961, which made him 21 when Family Ties debuted in 1982, and 24 upon the release of the first Future in 1985. The last two entries in the trilogy were filmed back-to-back, with Fox turning 29 a few weeks after the release of Back to the Future, Part III.

RELATED: A Back to the Future Theory Ties Marty McFly’s Car Troubles to Fate

That, and Fox’s ageless looks, made anything beyond rough estimation very difficult to the casual viewer. And it’s more important than it may seem, given the trilogy’s elephantine time-travel plot. Fox himself may have muddied the waters further by taking on multiple additional roles, including Marty’s great-great-grandfather Seamus McFly in Part III, who was old enough to marry and father a child by the time he appears in the story. At that point, Marty’s age was almost academic.

The definitive answer comes in an odd little Easter egg, hidden amid the key exchanges of the first film. Having arrived in 1955 -- and inadvertently interfered with his parents’ first meeting -- Marty seeks out a young Doc Brown, who has just conceived the means for time travel. In an effort to convince him that he actually comes from the future, he shows his driver’s license. The date on the license is June 9, 1968 -- the month and day likely stem from Fox’s own birthday, also June 9 -- which puts his age at 17 on November 5, 1985, when the events of the trilogy began.

It's a small detail, to be sure, but it can provide a good grounding point for a series defined by temporal chaos. Guessing the characters’ comparative ages can be an exercise in frustration. The prop driver’s license spares the series’ protagonist that fate while providing at least a sliver of in-world certainly to hold onto. Little things make a difference sometimes, something Back to the Future understands as well as anyone.