AimThis study explored the influence of student computer competency on e‐learning outcomes among Iranian nursing students and examined its mediating role in the relationship between virtual learning infrastructure, student collaboration, access to electronic facilities, and e‐learning outcomes.DesignA cross sectional study.MethodA self‐administered online survey was used from August to October 2022, with a sample size of 417 nursing students selected through convenience sampling. Descriptive statistics, correlation analyses, and PROCESS macro v4.1 (Model 4) were used for data analysis.ResultsThe results revealed that virtual learning infrastructure, access to electronic facilities, and student collaboration, significantly predict student computer competency and e‐learning outcomes. Virtual learning infrastructure and access to electronic facilities were found to be the strongest predictors of student computer competency, while student collaboration had a smaller but still significant effect. Student computer competency was found to mediate the relationship between virtual learning infrastructure, access to electronic facilities, student collaboration, and e‐learning outcomes.