Vending machines are used to dispense small different products, when a coin is inserted. These machines can be implemented in different ways by using micro-controller and FPGA board. Here, in this paper, the authors proposed an efficient algorithm for implementation of vending machine on FPGA board. Because FPGA based vending machine give fast response and uses less power than the microcontroller based vending machine. The FPGA based vending machine supports four products and three coins. The vending machine accepts coins as inputs in any sequence and delivers products when required amount is deposited and gives back the change if entered amount is greater than the price of product.