The lateral oscillations of vehicle trajectories are a significant cause of collisions. There is a dearth of research, however, on the oscillatory behaviors of vehicles driving on straight sections of freeways. This study aimed to investigate the effects of vehicle type, lane position, and speed on oscillation behavior and to propose quantitative indicators to explain lateral oscillation characteristics. Based on these characteristics, a more appropriate lane width can be determined. First, the k-means algorithm was performed to cluster the vehicles into three categories: passenger cars, medium-large cars, and extra-large trucks. Then, statistical methods such as analysis of variance (ANOVA) and regression analysis were employed to elaborate on the speed distribution, lateral amplitude (LA), and distance traveled within the oscillation cycle (DTOC) for various vehicle types. The results show that different types of vehicles have different lateral oscillation tendencies. The LA and DTOC for passenger cars are generally more extensive than for medium-large cars and extra-large trucks, and their oscillation patterns are the most complicated. The vehicle trajectory oscillation pattern varies significantly for different lane positions and speeds, but speed is the dominant influencing factor. The naturalistic driving dataset from German freeways served as the foundation for this study. These results can assist road engineers in better understanding the behavioral characteristics of vehicle trajectory oscillations and designing safer freeways.