An automatic parking system includes a sensor detecting parking areas depending on a size of a subject vehicle and a controller controlling the subject vehicle to be parked in an optimal parking area among the parking areas, in which the sensor may detect the parking areas in consideration of a length and a width of the subject vehicle and detect a spaced distance from surrounding vehicles positioned on a side of the subject vehicle in the optimal parking area and the controller may calculate a moving path between a current position of the subject vehicle and the optimal parking area and compare a predetermined reference distance and the spaced distances to control the subject vehicle.