Used to describe a result that comes after a long, often painful or drawn-out process of effort, worry, or trouble. It carries a strongly negative or regretful nuance — 'after struggling with X (for a long time), it ended up (badly) as Y.' It emphasizes both the exhausting process and the (usually undesirable) final outcome.
[Verb た-form / Noun の] + あげく(に)
さんざん悩んだあげく、会社を辞めることにした。
Sanzan nayanda ageku, kaisha o yameru koto ni shita.
After agonizing over it for ages, I ended up deciding to quit the company.
悩んだ (た-form of 悩む, struggled) + あげく shows the drawn-out worry leading to the final decision.
長時間の議論のあげくに、結論は出なかった。
Chōjikan no giron no ageku ni, ketsuron wa denakatta.
After a long discussion, in the end no conclusion was reached.
議論の (Noun + の) + あげくに + a negative outcome (no conclusion), typical of this pattern.
道に迷ったあげく、約束の時間に大幅に遅れた。
Michi ni mayotta ageku, yakusoku no jikan ni ōhaba ni okureta.
After getting completely lost, I ended up being way late for the appointment.
迷った (た-form) + あげく connects the ordeal of getting lost to the bad result of being late.
• Register: formal/written; common in essays and news-style narration. • Nuance: almost always a negative or regrettable result — do not use for happy outcomes. • Needs a process: the preceding clause must show effort/struggle over time, not a single instant. • あげくの果て(に) is an even stronger, more emphatic variant ('in the very end').
The JLPT rarely asks whether you recognise a pattern — it asks which of several similar patterns fits. These are the ones ~あげく(に) is tested against.
末(に) is neutral and can end positively ('after much X, finally Y'), while あげく nearly always implies a negative, undesirable outcome.
~た結果 simply states the result of an action neutrally; あげく adds the nuance of a long, wearying process and a bad ending.
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.