The key feature of substitutes and complements is the fact that a change in price of one of the goods has an impact on the demand for the other good. For substitutes, an increase in the price of one of the goods will increase demand for the substitute good. (It's probably not surprising that an increase in the price of Coke would increase the demand for Pepsi as some consumers switch over from Coke to Pepsi.) It's also the case that a decrease in the price of one of the goods will decrease demand for the substitute good.
For complements, an increase in the price of one of the goods will decrease demand for the complementary good. Conversely, a decrease in the price of one of the goods will increase demand for the complementary good. (For example, decreases in the prices of video game consoles serves in part to increase demand for video games.)
Goods that don't have either the substitute or complement relationship are called unrelated goods. In addition, sometimes goods can have both a substitute and a complement relationship to some degree- for example, gasoline is a complement to even fuel-efficient cars, but a fuel-efficient car is a substitute for gasoline to some degree.


