Based on the character of position of small caliber guns on board and the guns’ effectiveness against anti-ship missile, a kind of optimum distribution of small caliber guns against anti-ship missiles and the algorithm to calculate its effectiveness were conducted.