Der is male, die is feminine, das is neutral which is supposed to be the pattern. Sadly this applies to about 5 words before it gets completely thrown out the fucking window and you just have to know which one it is, which is bs. I've lost so many points on tests for a lack of memorization...