In order to solve the poor matching ability between concrete structures of traditional architectural space optimization design methods, it leads to the problem of low space optimization ratio, so based on virtual reality technology, the author proposes a new method for optimizing the space of concrete structure buildings. Using virtual reality technology to improve the basic structure of building space, reorganize the form through the design space, and optimize the design of the concrete structure building space function; based on the test model of virtual reality technology, design the matching method of concrete structure, increase the proportion of building space optimization, and adopt linear buckling method, geometric nonlinear method, and double nonlinear analysis method; the ultimate bearing capacity of steel structures of residential buildings in earthquake areas is tested. Experimental results show that for the simple structure building space, the average optimization ratios are 97.17% and 96.71%, respectively; for the complex structure building space, under the proposed optimization design, the average optimization ratio is maintained at 94.34%, and the error between the stress prediction value of the finite element model and the axial stress obtained by testing is less than 6%. Compared with the traditional space optimization design, in the proposed space optimization design method, the proportion of building space optimization is higher; it can be seen that the virtual reality technology has a better matching effect on the concrete structure, and the accuracy of the ultimate bearing capacity value obtained by prediction is high.