There is provided a cartridge for an aerosol-generating system, the cartridge including: a first compartment having a first air inlet and a first air outlet, the first compartment containing a nicotine source; and a second compartment having a second air inlet and a second air outlet, the second compartment containing a lactic acid source, a ratio of flow area of the first air inlet to a flow area of the second air inlet being between about 3:4 and about 1:2. There is also provided an aerosol-generating system including the and an aerosol-generating device including a housing defining a cavity configured to receive at least a portion of the cartridge, and a heater configured to heat the first compartment and the second compartment of the cartridge.