As GC based methods had been observed to elevate NDMA levels in tested materials an alternative method which prevents the degradation of ranitidine and the subsequent formation of NDMA was therefore needed. A liquid chromatography with high resolution mass spectrometer (LC-HRMS) was developed and validated to measure the levels of NDMA in ranitidine drug substance and drug product.