Nitrostat is a nitrate. It works by dilating blood vessels. Chest pain usually occurs when the heart needs more oxygen than the blood is supplying. Dilating blood vessels allows the blood to flow more easily, reducing the workload of the heart and the amount of oxygen required by its tissues.