German has two common ways to say no: Ich habe keine Zeit. and Ich komme heute nicht. You already use both, and this lesson shows you when to use which one and where nicht goes.
You already know these sentences. Why does one have kein and the other nicht?
The first one negates a noun that would have no article in the positive sentence (Ich habe Geschwister.), so it's keine. The second one negates the verb, so it's nicht. English says "don't" and "can't" in both cases ("I don't have any siblings", "I can't"), which is why kein feels unusual at first.
The main idea
A quick test from English: if you could say it with "no", "not a" or "not any" before the noun ("no time", "not a problem", "not any coffee"), German uses kein. So "I don't have a car" is Ich habe kein Auto., not nicht ein Auto.
kein changes in every case just like ein, and it has a plural too: keinen Kaffee, keine Zeit, kein Problem, keine Kinder.
Kein
Nicht and where it goes
English puts "not" right after the first verb: "I don't find", "I can't come". German doesn't. In a simple sentence, nicht often comes after the object and the time expression, at the end of the sentence. It goes before the second verb part, before an adjective after sein, and before a place. This is a rule of thumb for these sentence types, not the full rule.
When you negate one part and say what's true instead, nicht goes right before that part, and sondern ("but rather") brings in the correction:
Nichts, nie and doch
nichts ("nothing") and nie ("never") are negative all by themselves. Where English often says "not … anything", German needs just nichts, and adding a second negative word would change the meaning:
Emily rings Jonas's doorbell:
doch answers a negative question with yes: Hast du keine Zeit? – Doch! "Don't you have time? – Yes, I do!" English just says "yes" here, but in German a plain Ja after a negative question is unclear, so the answer is Doch!
Quick check
Which negative sentence is correct?
Zeit has no article in the positive sentence, so it's keine Zeit. Ich habe Zeit. is correct, but it means you're free.
der Kaffee: type the right form of kein:
trinken takes the accusative, and there the masculine kein becomes keinen.
You can't find your key. Which is the natural way to say it?
In a plain negative sentence, nicht comes after the object, at the end. nicht den Schlüssel only works when you go on to say what you do find (…, sondern die Tasche), and nicht never comes before the verb here.
Make the whole sentence negative. Start with Ich or Heute.
nicht goes before the second verb part, kommen, at the end of the sentence, and not right after kann as in English "I can't". Ich kann nicht heute kommen would sound like "not today, but on another day".
Jonas asks: Hast du keinen Hunger? You are hungry. What do you answer?
doch answers a negative question with yes: "Yes, I am!" After a negative question, Ja is unclear, since Jonas can't tell which yes you mean. Nein. would mean you're not hungry.
Putting it all together
It's Saturday night, and Lukas arrives at Emily's for dinner. She's made chili. Answer as Emily; each step asks for a form from one lesson of this unit.
Lukas: Kennst du Jonas gut? Say yes, you know him well.
Jonas is a man, and he's the object of the sentence: ihn.
Lukas: Wo ist Jonas heute? Say that Jonas is at Sara's parents' (Saras Eltern) with Sara and his son (sein Sohn) Leo.
After mit and bei you use the dative. The masculine der Sohn takes seinem Sohn, and names don't take an article.
Lukas: Hast du auch Wein? Say that you don't have any wine (der Wein) and that you don't drink alcohol (der Alkohol).
der Wein and der Alkohol would have no article in a positive sentence, so it's keinen.
Take with you
If you take away one thing: kein usually negates a noun with ein or no article, and nicht negates everything else. In a simple sentence, nicht often goes at the end or before the second verb part, not right after the first verb as in English.