に vs で: what's the difference?
Both can mean "in" or "at": に is where something is or goes, で is where something is done. How to choose, with examples and a drill.
Draft: written with AI help and not yet checked by a teacher. If something looks wrong, please report it.
The patterns
- にWhere something is, where it goes; a point in timeOpen the lesson
- でWhere an action happens; by what meansOpen the lesson
The difference
Both can translate as "in" or "at", but they answer different questions. に marks where something exists (with ある, いる, 住む) and the destination or target of a movement (行く, 着く, 入る, 座る); it also marks a point in time (七時に). で marks the place where an action takes place (食べる, 働く, 勉強する) and the means — a tool, a vehicle or a language. Ask yourself: is the verb about being or arriving somewhere (に), or about doing something there (で)?
Side by side
いる is about existing somewhere → に. 遊ぶ is an action → で.
住む takes に (where you are); 働く takes で (where you do something).
The point you arrive at takes に; the place where you meet someone takes で. (友達に is the person you meet — a different に.)
に also marks a clock time; で also marks the means of doing something.
Quick drill
Pick the word that fits the blank. You get the answer straight away.
図書館__勉強します。
部屋__テレビがあります。
毎朝六時__起きます。
箸__食べます。
電車__乗ります。
日本語__手紙を書きました。
レストラン__晩ご飯を食べました。