A medical device that ejects a fluid includes a fluid ejection portion having an ejection tube having an opening for ejecting the fluid and a pulsation generation portion that generates pulsation to the fluid. A control portion controls a pulsation frequency by controlling the pulsation generation portion. A measurement portion measures movement velocity of the fluid ejection portion. A receiving portion receives instructions for setting a specific frequency and a specific movement velocity from a user. A setting portion sets the specific frequency and movement velocity based on the instruction from a user. A calculation portion calculates a control constant using the specific frequency and movement velocity. The control portion controls the frequency in accordance with the movement velocity so that a value calculated by the same method as calculation of the control constant using the frequency and movement velocity falls within a predetermined range including the control constant.