It is provided a solid pharmaceutical composition comprising sofosbuvir, one or more pharmaceutically acceptable excipients and optionally at least one pharmaceutically acceptable matrix compound, wherein at least 99 weight-% of the sofosbuvir comprised in the solid pharmaceutically composition are present in amorphous form. Sofosbuvir amorphous form is stable in the solid pharmaceutical composition.