This paper investigates the accuracy of the resistive-force theory (Gray and Hancock method) which is commonly used for hydrodynamic analysis of swimming flagella. We made a comparison between the forces, bending moments, and shear moments calculated by resistive-force theory and by the more accurate slender-body theory for large-amplitude, planar wave forms computed for a flagellar model. By making an upward empirical adjustment, by about 35%, of the classical drag coefficient values used in the resistive-force theory calculations, we obtained good agreement between the distributions of the forces and moments along the length of the flagellum predicted by the two methods when the flagellum has no cell body attached. After this adjustment, we found the rate of energy expenditure calculated by the two methods for the few typical test cases to be almost identical. The resistive-force theory is thus completely satisfactory for use in analysis of mechanisms for the control of flagellar bending, at the current level of sophistication of this analysis. We also examined the effects of the presence of a cell body attached to one end of the flagellum, which modifies the flow field experienced by the flagellum. This interaction, which is not considered in resistive-force theory, is probably insignificant for small cell bodies, such as the heads of simple spermatozoa, but for larger cell bodies, or cell bodies that have large-amplitude motions transverse to the swimming direction, use of slender-body theory is required for accurate analysis.