Expresses that one event occurs during the time another action is in progress. The 間に event happens at some point within the progressive action's timeframe.
[Verb て-form + いる] + 間に + [Event]
シャワーを浴びている間に電話が鳴った。
Shawaa wo abite iru aida ni denwa ga natta.
The phone rang while I was taking a shower.
浴びている間に (while showering) + 電話が鳴った (the phone rang)
先生が話している間に眠ってしまった。
Sensei ga hanashite iru aida ni nemutte shimatta.
I fell asleep while the teacher was talking.
話している間に = while the teacher was speaking + 眠ってしまった (ended up falling asleep)
電車を待っている間に、コンビニでお茶を買いました。
Densha o matte iru aida ni, konbini de ocha o kaimashita.
While I was waiting for the train, I bought some tea at the convenience store.
待っている間に (while waiting) + お茶を買いました (bought tea within that window)
• Key Concept: ている間に = at some point WHILE an action was in progress. • Detail: ている間 (without に) = throughout the whole time the action was in progress. • Summary: Common pattern for "something happened while I was doing X."
The JLPT rarely asks whether you recognise a pattern — it asks which of several similar patterns fits. These are the ones ている間に is tested against.
〜間に (with に) = a single event happens at one point during the span; 〜間 (no に) = an action continues throughout the entire span (テレビを見ている間、食べていた = ate the whole time I watched TV).
うちに stresses doing something before a state changes/ends ('while it still holds' — 熱いうちに食べる = eat while still hot); ている間に simply locates an event within an ongoing action, with no 'before it's too late' nuance.
ながら = the SAME subject does two actions simultaneously (歩きながら話す = talk while walking); ている間に typically has DIFFERENT subjects for the two events.
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.