The X-Files aired 218 television episodes across its 11 seasons.
The total combines the original nine-season run, which produced 202 episodes from 1993 to 2002, with the six-episode tenth season in 2016 and the ten-episode eleventh season in 2018. Adding those runs gives 202 + 6 + 10 = 218.
The episode count can be confusing because the show also has two theatrical films: The X-Files, released in 1998, and The X-Files: I Want to Believe, released in 2008. Neither movie is counted as a television episode. Some streaming listings can also display different totals because of catalog, duplicate, or episode-order conventions.
The original run centered on FBI agents Fox Mulder and Dana Scully, while the revival returned both leads to the supernatural and conspiratorial cases that defined the franchise. The final episode of season 11 aired on March 21, 2018, bringing the broadcast series to 218 episodes.