Aiming at the problems of poor layout design efficiency of smart home products and low rationality of layout planning, a layout design method for smart home products based on a real-number coding genetic algorithm is proposed. The principles of smart home product layout design are analyzed and the smart home system architecture based on the Internet of Things is designed. Divide the combination of smart home product layout space according to spatial function, extract the visual features of smart home product layout, build a smart home product layout optimization model based on the two constraints of the total area and individual area of smart home product spatial layout, and design a real-coded genetic algorithm. The model is solved to improve the global convergence of the algorithm, and the optimization method for the layout of smart home products is obtained. The experimental results show that the layout design method of smart home products based on a real-number coding genetic algorithm can accurately extract the layout features of smart home products and accurately classify the number of pairs of homes. The efficiency of layout design and rationality of layout planning of smart home products are better, which reflects the effectiveness of this method.