If you have never been through a miscarriage or pregnancy loss yourself, it can be hard to know what to say when someone you know shares the news about a loss. You know that you need to say something, but you just don't know what. You might feel understandably awkward.
In short, the best thing to say is anything along the lines of "I'm sorry, and I'm here for you if you want to talk about it."
Not all women will want to talk about their feelings. They might withdraw from friends and family and seek solitude. If your friend or relative is doing this, it may be her way of coping. Let your friend have her space, and don't try to force her to talk before she's ready. Consider sending a card or flowers to let her know you're thinking of her. You might offer to bring dinner over so she doesn't have to cook or, if she has other children, offer to watch them for a while so she can have some alone time.
Others might want to talk about their feelings. If your friend does want to talk, try to keep an open ear. Don't discourage your friend from talking, because it may be therapeutic for her. Consider asking questions like, "How do you feel?" in order to encourage her to open up.
In most cases, you should avoid offering advice unless asked. However, if you yourself have had experience with miscarriage, your friend might be interested in hearing about your experience. Remember to still approach the subject with caution. If your miscarriage happened a while ago, remember that the feelings of grief can be very intense in the beginning and your outlook on the experience may be very different from your friend's. Remember also that every person goes through the experience differently, so you do not necessarily know what your friend is feeling (and your friend does not necessarily know what you felt when it happened to you.)
Try to remember that your friend or relative has lost a child, and be sensitive to that fact. Don't minimize the loss. She had probably started to envision her child in her mind and likely feels that she lost a baby, not just a pregnancy. It may be a while before she feels like herself again.
If you feel uncomfortable and awkward, try to put that feeling aside and be there for your friend if she needs to talk. She will most likely be reeling and in shock for a while, and she will need your support.

