Korosi merupakan permasalahan umum yang terjadi pada peralatan proses dari bahan logam, khususnya pipa baja karbon, di industri pengolahan minyak bumi. Korosi tersebut dapat terjadi dengan laju bervariasi tergantung pada berbagai faktor, seperti jenis medium, suhu, dan waktu kontak antara bahan logam dengan medium. Laju korosi dapat hambat dengan teknik penambahan inhibitor ke dalam medium. Tujuan penelitian ini adalah mempelajari pengaruh suhu dan waktu perendaman pipa baja API 5L Grade B di dalam limbah minyak bumi dengan penambahan inhibitor sikloheksilamina terhadap laju korosinya. Sampel pipa baja API 5L Grade B disiapkan dalam bentuk kupon, potongan pipa dengan ukuran tertentu. Suhu perendaman dipelajari pada 30, 45, 60, 75, dan 90 C, sedangkan waktu perendaman dipelajari selama 48, 72, dan 96 jam. Hasil penelitian menunjukkan, perendaman pada suhu 90 C dengan penambahan inhibotor memberikan laju korosi terbesar, yaitu 0,788 mm/tahun posisi BLC (bottom line corrosion) dan 0,115 mm/tahun pada posisi TLC (top line corrosion). Sedangkan perendaman selama 96 jam dengan penambahan inhibotor memberikan laju korosi terbesar, yaitu 0,807 mm/tahun posisi BLC dan 0,133 mm/tahun pada posisi TLC.