The large load loss of piezoelectricity pumps leads to fluid energy in the fluid chamber during fluid transportation. In this paper, the output performance of a piezoelectricity pump is improved by changing the structure parameters of the fluid chamber to reduce the fluid load. The mechanism of fluid flow energy loss in the body cavity of hydraulic pumps is simulated and analyzed, and the influence of the dimensions of the inlet and outlet valves and the height of the cavity on fluid energy loss is obtained. The flow rate and pressure of inlet and outlet valves with different cavity heights and different driving frequencies are obtained. The results show that the flow rate and output pressure of the hydraulic pump are optimized when the cavity height is 3 mm, and the inlet and outlet valve diameters are 2.5 mm.