Recent industrial explosions globally have intensified the focus in mechanical engineering on designing infrastructure systems and networks capable of withstanding blast loading. Initially centered on high-profile facilities such as embassies and petrochemical plants, this concern now extends to a wider array of infrastructures and facilities. Engineers and scholars increasingly prioritize structural safety against explosions, particularly to prevent disproportionate collapse and damage to nearby structures. Urbanization has further amplified the reliance on oil and gas pipelines, making them vital for urban life and prime targets for terrorist activities. Consequently, there is a growing imperative for computational engineering solutions to tackle blast loading on pipelines and mitigate associated risks to avert disasters. In this study, an empty pipe model was successfully validated under contact blast conditions using Abaqus software, a powerful tool in mechanical engineering for simulating blast effects on buried pipelines. Employing a Eulerian-Lagrangian computational fluid dynamics approach, the investigation extended to above-surface and below-surface blasts at standoff distances of 25 and 50 mm. Material descriptions in the numerical model relied on Abaqus' default mechanical models. Comparative analysis revealed varying pipe performance, with deformation decreasing as explosion-to-pipe distance increased. The explosion's location relative to the pipe surface notably influenced deformation levels, a key finding highlighted in the study. Moreover, quantitative findings indicated varying ratios of plastic dissipation energy (PDE) for different blast scenarios compared to the contact blast (P0). Specifically, P1 (25 mm subsurface blast) and P2 (50 mm subsurface blast) showed approximately 24.07% and 14.77% of P0's PDE, respectively, while P3 (25 mm above-surface blast) and P4 (50 mm above-surface blast) exhibited lower PDE values, accounting for about 18.08% and 9.67% of P0's PDE, respectively. Utilising energy-absorbing materials such as thin coatings of ultra-high-strength concrete, metallic foams, carbon fiber-reinforced polymer wraps, and others on the pipeline to effectively mitigate blast damage is recommended. This research contributes to the advancement of mechanical engineering by providing insights and solutions crucial for enhancing the resilience and safety of underground pipelines in the face of blast events.