The present invention relates to a method of preparing a pharmaceutical composition comprising acetaminophen and nefopam, and wherein the wherein the pH-value of the pharmaceutical composition is adjusted to be between 4.8 and 5.8, preferably around 5.2. When the pH-value of the pharmaceutical composition is adjusted to be between 4.8 and 5.8, a stable pharmaceutical composition is obtained which is substantial free from impurities, i.e. the degradation impurities from nefopam and acetaminophen is below the Limit of Detection (LOD) at accelerated aging tests.