Indicates a final result reached after a long, often difficult or deliberate process. It means 'after…' or 'as the end result of…' The emphasis is on a period of effort, struggle, or consideration that finally leads to an outcome — usually a significant decision or conclusion.
[Verb た-form] + 末(に) / [Noun] + の末(に)
さんざん悩んだ末に、留学を決めた。
Sanzan nayanda sue ni, ryuugaku o kimeta.
After agonizing over it endlessly, I decided to study abroad.
悩んだ末に = following a long process of worrying, a decision was reached
長い議論の末、結論が出た。
Nagai giron no sue, ketsuron ga deta.
After a long discussion, a conclusion was reached.
議論の末 (noun + の末) = as the final result of the discussion
苦労した末に、ついに夢を実現させた。
Kurou shita sue ni, tsuini yume o jitsugen saseta.
After much hardship, he finally realized his dream.
苦労した末に emphasizes the drawn-out struggle preceding the result
• Requires a process that takes time and effort — not for instant results. • The result is often a weighty decision or a hard-won outcome. • 末に and 末 are interchangeable; の末 follows nouns.
The JLPT rarely asks whether you recognise a pattern — it asks which of several similar patterns fits. These are the ones ~末(に)/の末(に) is tested against.
あげく usually leads to an undesirable/negative result after prolonged trouble; 末に is neutral and simply marks the end of a long process, often ending well.
た後で is a plain 'after' with no nuance of effort; 末に stresses that the outcome came only after a long, laborious process.
Study Japanese grammar on LenGaki

Get the Android app
The app adds offline study, home-screen widgets, stroke-order tracing, speaking practice with pronunciation scoring, and an AI tutor that answers questions in context — none of which fits in a browser tab.