Beam elements are very widely used in structural engineering. Here we consider the methodology for calculating the rectangular frames with articulated or rigid nodes. The load is evenly distributed and concentrated. The result is exactly the same with the results of the method of force and displacement method. A practical example of the calculation of the frame. The input data for the program will be the number of items and the number of degrees of freedom, geometrical and physical characteristics as well as the degrees of freedom of information for each item. Shows the program for VisualBasic.