International audienceObjective: To better understand the different pathways linking socioeconomic position and HIV testing uptake in 18 sub-Saharan African countries.Design: We used cross-sectional population-based surveys between 2010 and 2018.Methods: Using a potential outcomes framework and the product method, we decomposed the total effect linking wealth and recent (<12 months) HIV testing into direct effects, and indirect effects, via internal (related to individual's ability to perceive need for and to seek care) or external (ability to reach, pay for and engage in healthcare) mediators to calculate the proportion mediated (PM) by each mediator.Results: High levels of inequalities were observed in nine and 15 countries among women an...