Codeine is a naturally-occurring opiate, while hydrocodone is synthetic. Hydrocodone is considered more powerful than codeine, so it can be used for more severe pain, while codeine is usually prescribed for pain ranging from mild to moderate.