In this paper, a program to analyze the proportional solenoid valve is developed with conventional FEM tool. To achieve the convenience and analysis accuracy, it is supposed that the solenoid valve is composed of some simple geometries, which are a triangle and a rectangle. This assumption make the modeling of valve simple. To check the feasibility of the developed code, a real example of a solenoid valve are analyzed and it is found that the code can calculated for the valve and the characteristic of a proportional valve is shown with graphs.