Let λj be the j-th eigenvalue of Sturm-Liouville systems with separated boundary conditions, we build up the Hill-type formula, which represent j∏(1−λj−1) as a determinant of finite matrix. This is the first attack on such a formula under non-periodic type boundary conditions. Consequently, we get the Krein-type trace formula based on the Hill-type formula, which express j∑λjm1 as trace of finite matrices. The trace formula can be used to estimate the conjugate point alone a geodesic in Riemannian manifold and to get some infinite sum identities.