Sulphur trioxide reacts with water to form a solution of sulphuric acid.
The equation describing this reaction is:
SO3 + H2O .............> H2SO4
Based on the above equation, the formula of the compound formed when sulphur trioxide reacts with water is: H2SO4