This method is for determining hydrogen sulfide and mercaptan sulfur in hydrocarbons by potentiometric titration. Typical samples include gasoline, naphtha, light cycle oils and similar distillates that are liquid at ambient temperature and pressure. The lower limit of quantitation is 0.2 mass-ppm mercaptan (as sulfur) and 1.0 mass-ppm hydrogen sulfide (as sulfur).