Statically indeterminate frame, composed of beams and columns, is a widely used structure form in civil engineering. The frame carrying capacity under various actions is related to the absolute stiffness of frame components and relative beam-column line stiffness ratio. The matrix displacement method and programming based on MATLAB were employed in this study to calculate the internal forces and displacements of a 2-bay 2-story frame structure under the action of horizontal loads. The influence of the beam-column line stiffness ratio on the frame load capacity was discussed based on the calculated result. Furthermore some advises were provided about the reasonable beam-column line stiffness ratio for engineering design.