This study proposes a trigeneration system based on solid oxide fuel cell (SOFC) for generating power, cooling and heating simultaneously. The system mainly contains a SOFC, a gas turbine (GT), an organic Rankine cycle (ORC), a steam ejector refrigerator (SER) and a heat exchanger. The thermodynamic, exergoeconomic and exergoenvironmental models of proposed trigeneration system are developed, and the effects of design parameters on system performances are analyzed. The results indicate that the system average product cost and environmental impact per unit of exergy increase with SOFC inlet temperature and working pressure, the pinch point temperature difference and evaporating pressure of Generator, while decrease with the current density of fuel cell. Finally, optimization is performed to achieve the optimal exergy-based performance. It is revealed that though the system exergy efficiency is decreased by 7.64% after optimization, the system average product cost and environmental impact per unit of exergy are significantly reduced.