What the word is actually built from
Arigatō comes from an older adjective, arigatai, and the two pieces are traceable: ari is a conjugated form of aru, the verb meaning "to exist" or "there is," and gatai is katai, "difficult," voiced (k to g) the way Japanese compounds regularly shift a following consonant. Put together, arigatai means something close to "difficult to exist," and by extension, something uncommon, hard to come by, precious. That's a step removed from "thank you": the word started out describing the rarity of a thing, and only later came to express gratitude for it.
A few language-learning sites simplify the breakdown to "ari, to have" plus "gato, difficult," which blurs two things worth keeping separate. Aru can function like "to have" in Japanese sentence structure (Japanese expresses possession as "X exists for me" rather than with a dedicated verb), but the dictionary sense of aru itself is existence, not possession, and gato isn't a standalone morpheme at all; it's katai after the sound shift that Japanese compounding produces. The looser gloss isn't wrong about the general shape of the word, just imprecise about the two pieces doing the work.
This kind of gap between a word's literal pieces and its everyday translation shows up elsewhere in borrowed Japanese vocabulary too: senpai is another case where the component parts describe something more structured than the one-word gloss English speakers usually reach for. Japanese farewells hide a similar gap between literal pieces and everyday translation: sayonara is glossed as a simple "goodbye," but its literal sense is closer to "if that's how it is," and unlike a casual arigatō, it signals a long or permanent parting rather than an everyday one.
A word with a paper trail going back to 759 CE
The Man'yōshū, a Nara-period anthology compiled around 759 CE and the oldest surviving collection of Japanese poetry, contains an early form of this word in its poem 4011. From there, the pronunciation shifted gradually across the following centuries: arigatashi to arigataku to arigatau, settling into the modern arigatō. The word also shows up in Heian-era prose, including the Tale of Genji and Sei Shōnagon's Pillow Book, works written roughly a thousand years ago, which shows the term stayed in continuous use through the transition from its older "rare, hard to come by" sense toward the gratitude sense modern speakers know.
That long, documented history matters for what comes next: any claim about where arigatō came from has to reckon with a word already on the page long before Portuguese traders ever set foot in Japan.
Why it isn't borrowed from the Portuguese obrigado
The resemblance between arigatō and Portuguese obrigado, both meaning "thank you," is one of the more famous coincidences in language trivia, and it's repeated often enough online that it reads as settled fact to a lot of people who've never checked it. It doesn't hold up against the timeline. Arigatai was already in written use by 759 CE; the Portuguese didn't reach Japan until the 1540s, roughly eight centuries later. A word can't borrow from a language it hasn't met yet.
The Portuguese side of the comparison undercuts the myth just as much. Obrigado descends from Latin obligātus ("obligated"), and its use to mean "thank you" isn't even attested until about a century after Portuguese ships arrived in Japan; the word Portuguese speakers used for thanks earlier than that was graças. So the two words that sound alike each have a fully independent paper trail, in two unrelated language families, and neither timeline leaves room for one to have produced the other. What's left is a genuine phonetic accident, the kind linguists call a false cognate: two words that happen to sound similar and mean the same thing without any historical connection at all.
The formality ladder: when plain arigatō works, and when it doesn't
Arigatō by itself is casual. It's the right register with friends, family, classmates, or anyone of equal or lower social standing, and in relaxed everyday exchanges. Add gozaimasu and it becomes arigatō gozaimasu, the polite default for talking to someone older, a stranger, a coworker, or anyone in a professional context; it's the safer choice any time the relationship isn't already familiar. Doumo intensifies either version without changing its formality: doumo arigatō stays casual, doumo arigatō gozaimasu stays polite, and both roughly mean "thanks a lot" or "thank you very much."
The rule of thumb Japanese teachers give beginners holds up: the longer the phrase, the more formal it reads. Dropping gozaimasu with a stranger or a boss doesn't make you sound young so much as abrupt, since it skips a politeness marker the situation calls for. When in doubt, arigatō gozaimasu covers nearly every situation a traveler or learner is likely to run into.
That kind of register judgment runs through a lot of Japanese social vocabulary, not just this word: sayonara carries a formality of its own, one tied to finality rather than politeness, and misjudging either word's weight reads as off in a similar way.
Why the spelling shows up two different ways
The Japanese word ends in a lengthened o sound, written ありがとう and typically romanized arigatou or arigatō (with a macron marking the long vowel). "Arigato," without the extra u or the macron, is a common English shorthand that drops that length distinction; it's how the word usually shows up in casual writing, song titles, and search queries, even though it's not the standard romanization. The shortened spelling doesn't change how the word is pronounced by anyone who already knows it should end in a held-out o; it's a simplification for readers who don't track Japanese vowel length, not a separate or more casual form of the word itself.