Parents planning to divorce face an uncomfortable challenge in having to relay the news to the children. Because kids have lived their entire lives with both parents in the same home, learning of the split can be devastating. Younger children might not understand what is going on and older kids can get resentful.
If possible, both parents should be there to discuss the matter with the children. Ideally, you will take time to plan out what you are going to say and how you will handle the situation.