The volatile compounds in strawberries play a significant role in the formation of strawberry aroma. However, these compounds undergo continual changes during storage, resulting in a decline in quality. In this study, a total of 67 volatile organic compounds (VOCs) were identified in strawberries through quantitative analysis. At the end of the storage period, the VOC content in the ultrasonic group was 119.02 µg/kg higher than that in the control group. The results demonstrated that the ultrasonic treatment increased the contents of terpenes and esters at the end of storage. Among these, linalool increased from 67.09 to 91.41 µg/kg, while ethyl cinnamate increased from 92.22 to 106.79 µg/kg. Additionally, the expression of the key metabolic genes closely related to these substances was significantly up-regulated. The expression of the FaNES gene, related to terpene metabolism, was up-regulated by 2.8 times in the second day, while the expression of the FaAAT gene, related to ester metabolism, was up-regulated by 1.5 times. In summary, this study provides a theoretical basis for exploring the mechanism of ultrasonic effect on strawberry flavor and quality after harvest.