B2 Grammar

Advanced time expressions: うちに, 間に/間, たびに, とたんに

Quick answer

These four expressions pin actions to spans or moments of time. ~うちに means 'while (a state lasts) / before it changes', urging you to act before a window closes (熱いうちに食べる 'eat it while it's hot'). ~間に means 'during the span, at some point', for a one-time action inside a period, while ~間 (without に) means 'throughout the whole span'. ~たびに means 'every time / whenever' an event recurs. ~とたんに means 'the instant / the moment' one thing happens, the next immediately follows, often unexpectedly.

Expression
Meaning
~うちに
while (it lasts) / before it changes; act within the window
~間に
during the span — a one-time action at some point inside it
~間
throughout the whole span (continuous)
~たびに
every time / whenever (recurring)
~とたんに
the instant / the moment (immediate, often surprising)
Key points
  • ~うちに urges action while a favorable state lasts or before an unwanted change; often with a negative (〜ないうちに 'before').
  • ~間に marks a one-time action at some point during a span; ~間 (no に) marks a continuous action throughout the span.
  • The main verb after ~間に is punctual (happens once); after ~間 it is durative (lasts the whole time).
  • ~たびに means 'every time / whenever', linking a recurring trigger to a regular result.
  • ~とたんに means 'the very instant', with the second event following immediately and often unexpectedly; it needs a past-tense trigger.

~うちに: 'while / before it changes'

~うちに marks a window of time and urges you to act within it, before conditions change. 熱いうちに食べてください ('please eat it while it's hot') implies it will cool. With a negative verb, 〜ないうちに means 'before (it happens)': 暗くならないうちに帰ろう ('let's go home before it gets dark'). The nuance is 'seize this window' — the state will not last. It attaches to verbs (plain), い-adjectives, な-adjectives (+な), and nouns (+の).

Attaching ~うちに
Preceding wordFormExample
i-adjectiveplain + うちに明るいうちに
verb (negative)〜ないうちに忘れないうちに
noun〜のうちに若いうちに / 今のうちに
  • 温かいうちに、どうぞ召し上がってください。
    Please eat it while it's warm.
    atatakai uchi ni — act within the window; implies it will cool.
  • 忘れないうちに、メモしておこう。
    Let me jot it down before I forget.
    wasurenai uchi ni — 〜ないうちに = 'before (it happens)'.
  • 若いうちに、いろいろな経験をしたほうがいい。
    You should have various experiences while you're young.
    wakai uchi ni — the window of youth.

~間に vs ~間: a crucial contrast

This pair trips up many learners. ~間に (with に) frames a span inside which a single, one-time action occurs at some point: 留守の間に、泥棒が入った ('while I was out, a burglar got in' — a punctual event). ~間 (without に) means the action continues throughout the entire span: 夏休みの間、ずっと旅行していた ('I was traveling the whole summer vacation'). So に signals 'at a point within', and no-に signals 'all the way through'.

~間に vs ~間
FormMain verb typeMeaning
~間にpunctual (once)at some point during the span
~間durative (continuous)throughout the whole span
example—寝ている間に / 寝ている間ずっと
  • 私が寝ている間に、電話があった。
    While I was sleeping, there was a phone call.
    nete iru aida ni — a one-time event at a point within the span.
  • 夏休みの間、ずっとアルバイトをしていた。
    I was working part-time throughout the whole summer vacation.
    natsuyasumi no aida — continuous action over the entire span (no に).
  • 母が買い物に行っている間に、部屋を掃除した。
    While my mother was out shopping, I cleaned the room.
    itte iru aida ni — the cleaning happens once within the span.

Choosing 間に or 間 by the main verb

A reliable test: look at the main clause verb. If it names a single, completed event (入った, 届いた, 電話があった), use ~間に. If it names a lasting activity that fills the span (勉強していた, 待っていた, 寝ていた), use ~間. You can even contrast them with the same span: 'while mom was out, (once) I called' vs. 'while mom was out, (the whole time) I waited'.

  • 授業の間、彼はずっと寝ていた。
    He was asleep the entire class.
    jugyou no aida — durative (slept throughout); no に.
  • 授業の間に、一度だけ質問した。
    During the class, I asked a question just once.
    jugyou no aida ni — punctual one-time action; に required.

~たびに: 'every time / whenever'

~たびに links a recurring trigger to a regular consequence: 'every time / whenever A, B'. この写真を見るたびに、学生時代を思い出す ('every time I see this photo, I remember my school days'). It attaches to a verb's dictionary form or to a noun with の (旅行のたびに 'every trip'). The result need not be surprising — it simply happens reliably with each occurrence. It is a cleaner, more lexical way to say 'whenever' than conditionals.

Attaching ~たびに
Preceding wordFormExample
verbdictionary + たびに会うたびに
noun〜のたびに試験のたびに
  • 彼に会うたびに、元気をもらう。
    Every time I meet him, I get energized.
    au tabi ni — recurring trigger → regular result.
  • この曲を聞くたびに、あの夏を思い出す。
    Whenever I hear this song, I recall that summer.
    kiku tabi ni — 'every time (I hear it)'.
  • 旅行のたびに、お土産を買ってくる。
    Every time I travel, I bring back souvenirs.
    ryokou no tabi ni — noun + の + たびに.

~とたんに: 'the instant'

~とたんに means 'the very moment / the instant' one thing happens, another immediately follows — frequently something unexpected. It attaches to the た-form of a verb: 家を出たとたんに、雨が降り出した ('the instant I left the house, it started to rain'). Because it describes an immediate, often surprising reaction, the second clause is usually past tense and outside the speaker's control; you cannot follow it with a plan or request.

  • ドアを開けたとたんに、猫が飛び出した。
    The instant I opened the door, the cat darted out.
    aketa totan ni — た-form trigger; immediate, surprising reaction.
  • 立ち上がったとたんに、めまいがした。
    The moment I stood up, I felt dizzy.
    tachiagatta totan ni — sudden, involuntary result.
  • 彼の顔を見たとたんに、泣き出してしまった。
    The instant I saw his face, I burst into tears.
    mita totan ni — spontaneous reaction; past-tense main clause.

Spans vs moments: a summary

Think of these in two groups. Spans: ~うちに (a window to act within), ~間に (a point inside a span), ~間 (the whole span). Moments: ~たびに (each recurring instance) and ~とたんに (one immediate instant). When you want to urge timely action, reach for うちに; when you report what happened during someone's absence, use 間に; when something recurs, use たびに; when you describe a sudden, surprising follow-on, use とたんに. These often appear with conditional nuances to build complex time logic.

Spans and moments at a glance
ExpressionTypeKeyword
~うちにspan (window)before it changes
~間に / ~間span (point / whole)during / throughout
~たびにrecurring momentevery time
~とたんにsingle instantthe moment
  • 日本にいるうちに、京都に行っておきたい。
    While I'm (still) in Japan, I want to visit Kyoto.
    iru uchi ni — act within the window of being in Japan.
  • 電車が止まったとたんに、乗客が降り始めた。
    The instant the train stopped, passengers began getting off.
    tomatta totan ni — immediate follow-on at a single moment.

Common mistakes

Wrong寝ている間、泥棒が入った。
Right寝ている間に、泥棒が入った。
A one-time event (入った) happening at a point in the span needs ~間に. ~間 (no に) is for continuous actions throughout the span.
Wrong夏休みの間に、ずっと旅行していた。
Right夏休みの間、ずっと旅行していた。
A continuous action filling the whole span (ずっと旅行していた) takes ~間 without に. ~間に implies a single point.
Wrong暗くなるうちに帰ろう。(意図:「暗くなる前に」)
Right暗くならないうちに帰ろう。
'Before it gets dark' is the negative 〜ないうちに (暗くならないうちに). The positive 〜うちに would mean 'while it is getting dark'.
Wrong家を出るとたんに、雨が降り出した。
Right家を出たとたんに、雨が降り出した。
~とたんに attaches to the た-form (past). Use 出た, not the dictionary form 出る.
Wrongドアを開けたとたんに、入ってください。
Rightドアを開けたら、入ってください。
~とたんに describes an immediate, often involuntary past result and cannot be followed by a request. Use たら for 'when you open it, please enter'.
Wrong会うたびに元気をもらうた。
Right会うたびに元気をもらう。
~たびに attaches to the dictionary form (会う); the main clause states a habitual result (もらう), not a bad past form もらうた.

Frequently asked questions

What is the difference between ~間に and ~間?
~間に (with に) marks a span in which a single, one-time action occurs at some point (寝ている間に電話があった). ~間 (without に) marks an action that continues throughout the whole span (夏休みの間ずっと旅行した). Check whether the main verb is punctual or durative.
When should I use ~うちに?
Use ~うちに to urge acting while a favorable state lasts or before it changes: 熱いうちに食べる ('eat it while hot'), 若いうちに ('while young'). With a negative verb, 〜ないうちに means 'before it happens' (暗くならないうちに 'before it gets dark').
How is ~たびに different from a conditional like ~と?
~たびに lexically means 'every time / on each occasion' and attaches to a dictionary verb or noun+の (会うたびに, 旅行のたびに). It reads more naturally than a conditional for stressing recurrence and a regular emotional or habitual result.
Why must ~とたんに use the past tense?
~とたんに reports that the instant something happened, another thing immediately followed, usually unexpectedly. Since it describes a completed trigger, it attaches to the た-form (出たとたんに), and the main clause is normally past tense too.
Can I use ~とたんに with a request or plan?
No. It describes an immediate, often involuntary reaction in the past, so you cannot follow it with a command, request, or intention. For 'when you do X, please do Y', use the conditional たら instead.

Practice

Act within a window (eat while hot).
熱い___、食べてください。
Please eat it while it's hot.
うちに 間に たびに
Show answer
うちに — 'While (a state lasts)' = ~うちに, urging action before it cools.
'Before it gets dark.'
暗く___うちに、帰りましょう。
Let's go home before it gets dark.
なる ならない なった
Show answer
ならない — 'Before X happens' is 〜ないうちに. 暗くならないうちに = 'before it gets dark'.
One-time event during a span.
私が寝ている___、地震があった。
While I was asleep, there was an earthquake.
間に 間 うちに
Show answer
間に — A punctual event (地震があった) at a point within the span needs ~間に.
Continuous action over the whole span.
夏休みの___、ずっと勉強していた。
I studied the whole summer vacation.
間 間に たびに
Show answer
間 — A durative action filling the span (ずっと勉強していた) takes ~間 without に.
'Every time I see this photo.'
この写真を見る___、昔を思い出す。
Every time I see this photo, I recall the past.
うちに とたんに たびに
Show answer
たびに — 'Every time / whenever' (recurring) uses ~たびに.
'The instant I opened the door.'
ドアを開けた___、猫が飛び出した。
The instant I opened the door, the cat darted out.
とたんに たびに うちに
Show answer
とたんに — A sudden, immediate (often surprising) follow-on at one instant uses ~とたんに.
Correct verb form before とたんに.
立ち___とたんに、めまいがした。
The moment I stood up, I felt dizzy.
上がる 上がった 上がって
Show answer
上がった — ~とたんに attaches to the た-form: 立ち上がったとたんに.
Do something while still in Japan.
日本にいる___、富士山に登りたい。
While I'm in Japan, I want to climb Mt. Fuji.
とたんに たびに うちに
Show answer
うちに — 'While (this window lasts)' uses ~うちに.
Noun + の before たびに.
試験___たびに、緊張する。
Every exam, I get nervous.
の を に
Show answer
の — A noun takes の before たびに: 試験のたびに.
Action at a point while mom was out.
母が出かけている___、宅配便が届いた。
While mom was out, a delivery arrived.
うちに 間 間に
Show answer
間に — A one-time delivery (届いた) at a point in the span needs ~間に.
Immediate reaction cannot take a request.
電車が止まった___、乗客が降り始めた。
The instant the train stopped, passengers began to get off.
うちに とたんに たびに
Show answer
とたんに — An immediate follow-on at a single instant is ~とたんに (with a past main clause).

Related guides