High costs are connected with upgrading railway embankments throughout Denmark using the partial factors for geotechnical design calibrated for general application. One way to reduce the costs is reliability-based calibration of the partial factors to a reasonable safety level taking into account the specific design situations and uncertainties relevant to railway embankments. A reliability-based design has been investigated, resulting in an optimal partial factor for the considered subsoil. With a stochastic soil model to simulate the undrained shear strength of soft soil deposits, the partial factor is calibrated using asymptotic sampling for the reliability assessment. The calibration shows that the partial factor can be reduced significantly compared to the value specified in the Danish National Annex to DS/EN 1997-1 (2007), Eurocode 7.