In most cases, the glass that is fogged up does not need to be replaced. If the insulated glass unit seal has been compromised in your window it can allow moisture to get in between the glass and cause the window to fog up. Often, the window can be treated and resealed to remedy this issue without replacing the entire window unit.