If you are the "extra" person in a situation, are you the "third wheel" or the "fifth wheel"?
Some books—like Film Noir Guide—say "third":
O'Keefe plays an escaped convict on the run with his moll (Trevor). Along the way they grab a hostage (Hunt) who works for O'Keefe's lawyer. O'Keefe and Hunt eventually fall for each other, leaving the jealous Trevor feeling like a third wheel. Burr is the hood O'Keefe took the rap for, and Ireland is Burr's vicious henchman. The cast in this hard-boiled and fast-paced noir is excellent, especially Trevor as the lovesick tag-a-long.
but others—like A Wife in Musashino—say "five":
Tomiko was especially kind to her daughter this evening. She held Yukiko's hand, stroked her hair, and explained various things about the children's story Tsutomu was narrating. She enjoyed demonstrating in front of her rival an affection she held in common with Tsutomu.
Tomiko's arrow struck home. Michiko felt like a fifth wheel sitting next to her. Her wariness regarding Tomiko's flirtations, which she had first experienced when she wasn't sure of her feelings for Tsutomu, came back to her.
Best Answer
The traditional idiom
Christine Ammer, The American Heritage Dictionary of Idioms (1997) has this entry for "fifth wheel":
A Google Books search confirms Ammer's assertion that the original allusion is to an unnecessary wheel added to a four-wheeled vehicle. In Google Books search results for the phrases "like a/the fifth wheel" and "like a/the third wheel," most of the earliest matches involve fifth wheels. For example, from "Review of New [missionary] Publications," in The Quarterly Christian Spectator, volume 6 (May 1824):
From 'A Woman,' England, the Civilizer: Her History Developed in Its Principles (1848):
From a debate on the Pardoning Power (June 20, 1853), in Official Report of the Debates and Proceedings in the State Convention, Assembled May 4th, 1853, to Revise and Amend the Constitution of the Commonwealth of Massachusetts (1853):
From comments of Eloi Rioux, mayor of Trois Pistoles," in Appendix to the Fifteenth Volume of the Journals of the Legislative Assembly of the Province of Canada (1857):
And from Bayard Taylor, The Story of Kennett (1866):
Nevertheless, there is one striking example of "like a third wheel" from this early period. From Alexander Ross, Adventures of the First Settlers on the Oregon or Columbia River (1849):
The difference in this last example, clearly, is that the image is of a two-wheeled cart with an extra (third) wheel, rather than of a four-wheeled coach or carriage with an extra (fifth) wheel.
Ngram evidence of recent changes in idiomatic usage
An Ngram chart of "like a fifth wheel" (blue line) versus "like a third wheel" (red line) for the period 1900–2005 looks like this:
As the chart indicates, the ascent of "like a third wheel" since 1970 (and especially since the middle 1980s) has been quite dramatic. I suspect that the change is due to increasing use of the phrase in situations involving a (presumably romantic) couple plus a third person; under those particular circumstances, equating the odd person out with "a fifth wheel" poses a numerical problem, given that only three "wheels" are present.
Conclusions
The rapid rise of "like a third wheel" indicates that this version of the idiom has gained considerable momentum in popular usage since 1970. Still, usage of "like a fifth wheel" remains quite popular, too, so if we are in a transitional phase from having "like a fifth wheel" as the dominant form to having "like a third wheel" as the dominant form, we are only now at the crossover point in popularity between the two (in published writing, anyway).
So, the answer to the poster's question, "If you are the "extra" person in a situation, are you the third wheel or the fifth wheel?" appears to be that you are the third wheel if the reference vehicle is normally two-wheeled, and you are the fifth wheel if the reference vehicle is normally four-wheeled. At the moment, with the blessing of popular usage, you may invoke either sort of vehicle, and therefore you may be justifiably claim to be either the third wheel or the fifth wheel on it.