The SIR model is a model used to group populations into 3 parts, namely susceptible or a subpopulation of individuals who are susceptible to disease, infected or a subpopulation of individuals who are infected and can transmit the disease and recovered or a subpopulation of individuals who have recovered from the disease. Measles is usually treated without a vaccine, so the disease is often found in the community. Giving the right and balanced vaccine will get results that are balanced with what is given. In this research, we develop a SIR model with additional controls. Where the control in this model is vaccination given to subpopulations S and I, so that the recovered subpopulation experiences an increase, because the number of subpopulation I decreases. The method used in this research consists of several steps, namely forming a SIR model which is formed in optimal control and determining the objective function. Next, solve the optimal control problem, which consists of several stages, namely forming the Hamiltonian function and finding states and co-states. Based on the research results, it is concluded that optimal control of the SIR model is obtained by state and co-state equations. Where this model is the result of reducing the Hamiltonian to obtain optimal control in the SIR model.