Kein and nicht can be confusing because they both kind of mean not but they really are not interchangeable.
When to use kein.
Kein is used when you want to say not or no or not any in relation to a noun. Think of it as an adjective. Because it is an ein-word, you have to make sure that you have the correct ending on kein. It is very rare to say nicht ein. If you have that, you probably want to use kein.
Examples:
Ich habe kein Sofa ==> I don't have a sofa./I have no sofa.
Ich mag keinen Kaffee. ==> I don't like coffee.
Ich will keine Äpfel. ==> I don't want any apples.
Ich kenne keinen guten Zahnarzt. ==> I don't know any good dentists.
When to use nicht.
With a noun.
You can use nicht with nouns in these instances:
a noun preceded by der/die/das
a noun preceded by a possessive (mein/dein/sein, etc)
a proper noun (nicht Frau, nicht Deutschland, etc)
Positions of nicht.
1. Nicht will precede the specific word that is being negated.
a. adjectives. Sie ist nicht schön.
b. gern. Ich spiele nicht gern Tennis.
c. adverbs. Wir gehen nicht schnell.
d. indefinite time. Ich fliege nicht oft.
e. prepositional phrases. Er ist nicht unter dem Bett.
2. Send it to the end to mean "don't". Ich spiele Tennis nicht. Ich rufe sie nicht an.
Need some practice?
http://www.quia.com/quiz/171700.html
http://german.tolearnfree.com/free-german-lessons/free-german-exercise-30872.php
When to use kein.
Kein is used when you want to say not or no or not any in relation to a noun. Think of it as an adjective. Because it is an ein-word, you have to make sure that you have the correct ending on kein. It is very rare to say nicht ein. If you have that, you probably want to use kein.
Examples:
Ich habe kein Sofa ==> I don't have a sofa./I have no sofa.
Ich mag keinen Kaffee. ==> I don't like coffee.
Ich will keine Äpfel. ==> I don't want any apples.
Ich kenne keinen guten Zahnarzt. ==> I don't know any good dentists.
When to use nicht.
With a noun.
You can use nicht with nouns in these instances:
a noun preceded by der/die/das
a noun preceded by a possessive (mein/dein/sein, etc)
a proper noun (nicht Frau, nicht Deutschland, etc)
Positions of nicht.
1. Nicht will precede the specific word that is being negated.
a. adjectives. Sie ist nicht schön.
b. gern. Ich spiele nicht gern Tennis.
c. adverbs. Wir gehen nicht schnell.
d. indefinite time. Ich fliege nicht oft.
e. prepositional phrases. Er ist nicht unter dem Bett.
2. Send it to the end to mean "don't". Ich spiele Tennis nicht. Ich rufe sie nicht an.
Need some practice?
http://www.quia.com/quiz/171700.html
http://german.tolearnfree.com/free-german-lessons/free-german-exercise-30872.php