Background Dyslipidemia is a well-known risk factor for cardiovascular disease (CVD), accounting for more than half of all instances of coronary artery disease globally (CAD). Purpose The purpose of this study was to determine lipid-related cardiovascular risks in HIV-positive and HIV-negative individuals by evaluating lipid profiles, ratios, and other related parameters. Methods A hospital-based study was carried out from January 2019 to February 2021 in both HIV + and HIV- ambulatory patients. Results High TG (p = .003), high TC (p = .025), and low HDL (p < .001) were all associated with a two-fold increased risk of CVD in people aged 45 and up. Due to higher TG (p < .001) and lower HDL (p < .001), males were found to have a higher risk of atherogenic dyslipidemia. A twofold increase in the likelihood of higher TG levels has been associated with smoking (p = .032) and alcohol intake (p = .022). A twofold increase in a high TC/HDL ratio and an elevated TG/HDL ratio was observed with an increase in waist-to-height ratio (p = .030) and a high level of FBS (126 mg/dl) and/or validated diabetes (p = .017), respectively. In HIV + participants, central obesity (p < .001), diabetes (p < .001), and high blood pressure (p < .001) were all less common than in HIV- participants. Conclusions Dyslipidemia is linked to advanced age, male gender, diabetes, smoking, alcohol consumption, and increased waist circumference, all of which could lead to an increased risk of CVD, according to the study. The study also revealed that the risks are less common in HIV + people than in HIV-negative ambulatory patients.