か〜ないかのうちに

JLPT N2approx.Neutral
Meaning

Pairs the affirmative and negative of the same verb to say that the second event happened just as the first was happening or had barely finished, when one could hardly tell whether it was complete: "no sooner... than...", "the moment...".

Examples
1
The moment the bell signaling the end of class rang, the students rushed out of the classroom.
2
彼かれは布団ふとんに入はいったか入はいらないかのうちに、もう眠ねむってしまった。
He had barely gotten into bed when he fell asleep.
Formation
+か++かのうちに鳴るか鳴らないかのうちに
+か++かのうちに言い終わったか言い終わらないかのうちに
Usage

Setting the same verb side by side in affirmative and negative describes an instant when it is hard to tell whether the first action has even finished, and the second has already happened; it stresses an extremely short gap. The second clause usually describes something that happened, in the past tense, but it can also describe a recurring situation (店頭に並ぶか並ばないかのうちに売れていく). The first verb is usually in the dictionary form, though the た form is also possible. It is used in both written and spoken narration; in casual conversation 〜たとたん or 〜たらすぐ is also common.

Watch out

Normally the same verb is repeated, once affirmative and once negative; with a compound verb the negative side can keep only the second half (言い終わるか終わらないかのうちに), but two verbs with different meanings cannot be used.

The second clause is normally not the speaker's intention, command or request; for an instruction, use another pattern: ベルが鳴ったらすぐ教室を出てください, 卵が完全に固まらないうちに取り出してください.

Note the の before うちに: 鳴るか鳴らないかのうちに; do not drop it.

Easily confused with
  • 1.
    たとたんN3With 「たとたん」 the first action, in the た form, is complete, and the second clause is usually a sudden or unexpected change (立ち上がったとたんにめまいがした); 「か〜ないかのうちに」 stresses that the second event happens almost simultaneously, just as the first occurs or is completed, with less sense of suddenness or surprise.
  • 2.
    〜やいなやN1「やいなや」 follows the dictionary form and is literary, meaning the second event follows immediately; 「か〜ないかのうちに」 pairs the affirmative and negative of the same verb and stresses "almost simultaneously" even more.

All three mean "the moment...". With たとたん the first action is complete and the second is usually sudden or unexpected; やいなや is literary, with the second event following immediately; か〜ないかのうちに pairs affirmative and negative to stress that the two events almost overlap in time. None of the three normally takes the speaker's intention or request in the second clause.

Grammar · JLPT grammar levels are community estimates, not official (no official lists have been published since the 2010 revision).

Say it right, write it right

Core lookup works fully offline, with cloud pronunciation and one-tap save & review. Free, no sign-up.

Free downloadWindowsFree downloadmacOSDownload on the App StoreGet it on Google Play
MobileiOS / Android

Android

QR code for the Google Play pageGet it on Google Play

Scan it with your Android phone to install, or search for “Tomoshi” on Google Play.

iOS

QR code for the App Store pageDownload on the App Store

Scan it with your iPhone camera to install, or search for “Tomoshi” in the App Store.

Install the browser extensionLook words up on any web page · Chrome / Edge / Safari

Screenshot of a Tomoshi lookup resultScreenshot of Tomoshi lookup results on a phone

Windows macOS Chrome / Edge / Safari extension iOS / Android