The invention discloses a method of producing heparin calcium from crude heparin sodium. The method comprises the steps, such as, with crude heparin sodium as a raw material, salt decomposition, precipitating, dissolving, oxidizing, precipitating, dissolving, oxidizing, precipitating, dissolving, and lyophilizing, and the finished heparin calcium having stable and controllable quality is obtained.The method of producing heparin sodium uses crude heparin sodium as a raw material; calcium conversion is achieved during oxidative cleaning and decoloring by hydrogen peroxide addition; the problemof the prior art is solved that calcium-sodium exchange of cation exchange resin has high resin activation requirement, has the need for massive water and operational complexity and high production cost. The method has the advantages that the production steps are simplified, less impurity is introduced, finish heparin calcium of high purity, high yield, high activity and controllable quality stability can be acquired, the product quality is higher than that provided in existing standards of EP (European pharmacopeia); the method is simple to perform, low in production cost and easy to implement for industrial large-scale production, and has important application prospect.