This disclosure relates to medical fluid sensors and related systems and methods. In certain aspects, a method includes reading an indicia of a medical fluid cartridge to determine a volume of a fluid passageway of the medical fluid cartridge indicated by the indicia, receiving radio frequency energy generated by excited atoms in medical fluid in the fluid passageway of the medical fluid cartridge, and determining a concentration of a substance in the medical fluid based on the determined volume of the fluid passageway of the medical fluid cartridge indicated by the indicia and the received radio frequency energy generated by the excited atoms in the medical fluid in the fluid passageway of the medical fluid cartridge.