What is the difference between kein and nicht?
Short answer
Use kein to say "no" or "not a" before a noun with ein or with no article: Ich habe kein Auto. Ich trinke keinen Kaffee. Use nicht for everything else: verbs, adjectives, and nouns with der, die, das or a name: Ich komme nicht. Das ist nicht teuer.
One question sorts them: would the positive sentence have ein or no article in front of the noun? Then it is kein. Otherwise, nicht.
kein: instead of ein, or no article
Kein takes the same endings as ein: keinen Kaffee, keine Zeit, mit keinem Wort.
- Ich habe ein Auto. → Ich habe kein Auto.I don’t have a car.
- Ich trinke Kaffee. → Ich trinke keinen Kaffee.I don’t drink coffee.
- Wir haben Zeit. → Wir haben keine Zeit.We have no time.
nicht: everything else
- Ich komme heute nicht.I’m not coming today.
- Das Essen ist nicht teuer.The food isn’t expensive.
- Das ist nicht der Bus nach Köln.That isn’t the bus to Cologne.
Where nicht goes
By default nicht goes near the end, after the objects: Ich kenne den Mann nicht. It moves in front of the part it negates when that part is an adjective, a place or a second verb: Ich bin nicht müde. Er wohnt nicht in Berlin. Ich kann nicht schwimmen.
And doch
To answer “yes” to a negative question, Germans say doch: Kommst du nicht mit? – Doch! (Yes, I am!)