The purpose of this article is to optimization of national rice production with fuzzy logic using Mamdani method. Based on the results of the study, it is known that four parameters need to be considered to maintain the price stability of necessities, namely production; availability; demand and distribution. Optimization of production by producers and optimization of the ordering of goods by distributors are important steps to maintain price stability for necessities. Optimization of production and ordering of staple goods will have a significant impact on the financial sector because it is closely related to the prediction of the number of raw materials used, production costs, storage costs, and also distribution costs of goods. One of the fuzzy inference methods that can be used for this optimization is the Mamdani method. To get the output on the application of the fuzzy logic of the Mamdani method, four stages are needed, formation of fuzzy sets; application of implication functions; composition of rules and defuzzification. Fuzzy logic Mamdani method can be used to predict the amount of national rice that must be produced. If it is known that the need is 21,908,784 tons of rice and the supply is 65,457,456 tons, the amount of national rice that must be produced is 14,624,592 tons.