Sexual health literacy and risky sexual behaviour among female university students in Tanzania: a social-ecological analysis of levels, differences, and determinants Authors: Noel Mark Makwinya, Thabita Lameck Lupeja Published: 2026 ABSTRACT AbstractIntroduction and purposeUnintended pregnancy (UIP) remains a persistent public health concern among young women in sub-Saharan Africa, including Tanzania. This study examined Sexual Health Literacy for Pregnancy Prevention (SHLPP) and engagement in Sexual Behaviours potentially leading to UIP (referred to in this study as Risky Sexual Behaviours [RSB]) among female university students using a Social Ecological Model (SEM). Specifically, it assessed (i) levels of SHLPP and RSB, (ii) differences across individual, interpersonal, and contextual factors, and (iii) the predictive effects of these factors on SHLPP and RSB, including the influence of SHLPP on RSB.MethodA cross-sectional study was conducted involving 255 female university students at Sokoine University of Agriculture, Tanzania. Data were collected using a structured questionnaire and analysed using descriptive statistics, factorial ANOVA, and hierarchical multiple regression.FindingsMost participants (75.6%) exhibited low-to-moderate SHLPP, while 63.7% reported moderate-to-high RSB. Upbringing environment significantly influenced both RSB (F(1,165) = 17.817, p < .001, η2 = .097) and SHLPP (F(1,218) = 4.124, p < .05, η2 = .019), with urban students reporting higher levels of both. Year of study showed a small, albeit significant effect on RSB (F(2,165) = 3.246, p < .05, η2 = .038) only. Parental education and accommodation type did not have significant independent effects on SHLPP and RSB. However, they exerted significant interaction effects between: (i) parental education and upbringing environment, and between parental education and accommodation type on RSB and (ii) upbringing environment and accommodation on SHLPP. Parent–daughter communication emerged as the strongest predictor of both SHLPP (β = .318, p < .001) and RSB (β = .402, p < .001). Notably, SHLPP did not significantly predict RSB (β = .088, p = .221), indicating a disconnect between knowledge and behavior.Conclusion and implicationsSexual behaviour among FUS is more strongly shaped by interpersonal and contextual factors than by individual knowledge alone. These findings underscore universities’ need to enhance parent–child communication, deliver targeted sexual health education, and consider student backgrounds when allocating housing.Keywords: Unintended pregnancy, University students, Risky Sexual behaviour, Sexual Health Literacy, Tanzania Introduction Unintended pregnancy (UIP) remains a major global public health concern, particularly in low- and middle-income countries [2, 3, 34]. Beyond its health implications, UIP disrupts educational trajectories and socioeconomic stability, particularly at growth stages of navigating transitions related to education, relationships, and independence [12]. The persistence of this problem has prompted significant attention to sexual health education as a key intervention measure. Globally, comprehensive sexuality education programs have been promoted as effective approaches to improve young people’s knowledge, attitudes, and decision-making regarding sexual and reproductive health [33, 34]. In Tanzania, similar efforts have been implemented through the integration of sexual health education into primary and secondary school curricula using a multidisciplinary approach [11, 35]. Despite these intervention efforts, UIP remains prevalent and disproportionately affects adolescents and women in early adulthood, reflecting heightened vulnerability during this life stage. According to the Demographic and Health Survey (DHS) conducted by the Ministry of Health (MoH) of Tanzania in collaboration with the National Bureau of Statistics (NBS) [Tanzania], Office of the Chief Government Statistician (OCGS) [Zanzibar], and ICF [22], approximately 1.34 million unintended pregnancies occur annually among adolescent girls aged 15 to 19 and young women aged 20 to 26. This situation suggests that sexual health education programs may not be effective, or Sexual health knowledge alone does not consistently translate into safer sexual practices ([5, 24, 29]), highlighting a need to comprehensively understand how Sexual Health Literacy for Pregnancy Prevention (SHLPP) interacts with individual, interpersonal, and contextual factors to influence sexual behaviors that may contribute to UIP occurrences. Global and local reports [22, 34] and research [25] indicates that engagement in sexual behaviors that potentially lead to UIP—referred to in this study as Risky Sexual Behaviors (RSB)—is influenced by a complex interplay of factors operating at the individual, interpersonal, and contextual levels. Prior studies in Tanzania have examined these influences among adolescents and school-going populations, identifying factors such as socioeconomic conditions, cultural norms, media exposure, and limited parent–child communication as key drivers of risky sexual behaviour ([5, 9, 23, 37]). However, these studies primarily focus on adolescents in primary and secondary education, leaving limited evidence on female university students (FUS) who are largely in early adulthood growth stages. Evidence from university settings in Tanzania [15, 19] indicates increasing occurrences of UIP among FUS. Experiencing an increased autonomy, exposure to new diverse social environments, and reduced parental supervision among this age group may increase engagement in RSB, contributing to UIP. Against this backdrop, it is necessary to examine SHLPP and RSB among female university students in Tanzania within a multi-level socio-ecological context. Specifically, objectives of this study were three: (i)To assess the levels of SHLPP and engagement in RSB among female university students. To assess the levels of SHLPP and engagement in RSB among female university students. (ii)To examine differences in SHLPP and RSB across individual, interpersonal, and contextual factors. To examine differences in SHLPP and RSB across individual, interpersonal, and contextual factors. (iii)To examine the predictive effects of individual, interpersonal, and contextual factors on SHLPP and RSB, and the influence of SHLPP on engagement in RSB. To examine the predictive effects of individual, interpersonal, and contextual factors on SHLPP and RSB, and the influence of SHLPP on engagement in RSB. Literature The report by the United Nations Population Fund [34] indicates the presence of about 65 million unintended pregnancies (UIPs) worldwide between 2015 and 2019. While the UIP issue is a global concern, the prevalence of this problem varies significantly across continents, regions, and countries, with developing countries in Africa shouldering a disproportionate burden. According to this report, Europe and North America had the UIP rate of 35 per 1000 women aged 15 to 49, while sub-Saharan Africa recorded a significantly higher rate of 91 UIPs per 1000 women in the same age group between 2015 and 2019. Citing reports by the Guttmacher Research Institute, Moses [24] points out that Tanzania recorded 2.93 million annual pregnancies during the same period, of which 1.34 million were unintended. Considering that approximately 18 million women worldwide give birth each year [3], an increase in the number of UIP may indicate a global rise in risky sexual behaviour among women. Although the UIP issue affects women of all ages, the report by UNFPA [34] highlights that adolescent girls (aged 15–19 years) and women in early adulthood (aged 20–29 years) are more vulnerable to experiencing it. The Ministry of Health (MoH) and the National Bureau of Statistics (NBS) of Tanzania [22], as well as [2], inform us further that this vulnerability is heightened by their higher fertility rates as well as their inconsistent or non-use of contraceptives compared to older women. Additionally, women in early adulthood often find themselves navigating romantic relationships [1, 4, 16, 39], which oftentimes leads to having multiple sexual partners. Collectively, these factors contribute to higher rates of UIP among young women. UIP occurs in the absence of explicit intention or planning by the individual(s) involved in the sexual (intercourse) act [2, 39]. It is often an outcome of inconsistent use, incorrect use, or the complete non-use of effective family planning methods [2]. On these grounds, UIP can be experienced by women of any reproductive age and social background, as well as those in committed relationships, casually dating, or those not in a partnership at all. The reasons behind women's engagement in sexual behaviours that potentially lead to UIP— RSB, as used in this study, are complex and diverse [23]. The UNFPA [34] and the MoH and NBS [22] highlight various factors, such as gender inequalities, societal norms and beliefs, women’s socioeconomic status (SES), governmental policies that impede contraceptive access, incidents of sexual violence, and limited educational opportunities. Recent reports by Ajayi and Ezegbe (2020) in South Africa, Davis et al. (2019) in India, Yuan et al. [39] in China, Thongnopakun, Pumpaibool, and Somrongthong [31] in Thailand, and Hua and Flaherty [12] in the USA support these findings. When examining factors contributing to UIP among young women, it is crucial to acknowledge the multifaceted nature of the issue. While SES, gender violence, national policies, and other societal factors unquestionably exert significant influence on sexual practices leading to UIP, the contribution of limited reproductive health knowledge and non-use or failure of contraception to this problem must also be recognised [12]. Despite broader societal dynamics, individual-level factors like limited access to comprehensive sexual education, misinformation, stigma surrounding contraception, and barriers to contraceptive use profoundly impact decision-making regarding sexual behaviours and contraceptive practices [5, 13, 31]. This recognition underscores the critical importance of education and access to reproductive health services for women in early adulthood. By addressing knowledge gaps and ensuring access to effective contraception methods, we can empower young women to make informed choices about their sexual health and reduce the incidence of UIP. However, it is crucial to approach this issue holistically, acknowledging the intersectionality of various factors and tailoring interventions accordingly to provide comprehensive support to young women in navigating their sexual and reproductive health. The conceptual framework This study utilized the Social Ecological Model (SEM), a framework designed to explore the various interconnected factors that influence human behaviour. Originally proposed by Bronfenbrenner [6], the SEM asserts that behaviour results from ongoing interactions between individuals and their environment, rather than being solely determined by individual choices. It stresses that behaviours arise from dynamic and reciprocal relationships between individual, social, and contextual factors. Four core components are consistently identified in different versions of the SEM: individual, interpersonal, contextual, and policy levels. The individual level addresses personal attributes (e.g., demographics, knowledge, and attitudes) that influence behaviour. The interpersonal level highlights the role of relationships with family and peers in shaping beliefs and actions. The contextual level examines structural and environmental influences, while the policy level includes regulatory frameworks that affect the broader social environment and indirectly influence individual behaviours. In this study, the SEM was operationalized to examine how selected factors at three levels—individual, interpersonal, and contextual—influence SHLPP and engagement in RSB among female university students in Tanzania. Unlike broader applications of the SEM that incorporate policy and societal levels, this study focuses on proximal and measurable factors within the university context, consistent with McLeroy et al. [21] who advocate for context-specific applications of the SEM to better capture relevant influences within particular populations. Accordingly, the SEM guided both the selection and organization of variables and the analytical strategy employed in this study. At the individual level, the study examined year of study as a key variable influencing both sexual health literacy and behavioural decision-making. This variable served as a proxy for age, experience, and exposure to diverse social networks, reflecting students’ developmental progression and increasing autonomy as they advance academically. However, this study acknowledges inconsistent findings regarding the influence of age on sexual behaviour remains mixed. For example, studies by Qu et al. [27], Tymula et al. [32], Vasilenko and Lanza [36], and Rossi et al. [28], report contrasting findings on the relationship between age and sexual behaviour during the transition to adulthood. At the interpersonal level, the study examined P-D_COMM on sexual health, focusing on the freedom of initiation and focus of discussions about sexuality, reproductive health, and pregnancy prevention. Such communication is recognised as a key social determinant of health [38], influencing knowledge, attitudes, and risk perceptions. Empirical evidence [1, 20, 25, 30, 37, 38] highlights its importance. At the interpersonal level, the study focused on P-D_COMM, determining freedom of initiation and focus of discussions between students and their parents about sexuality, reproductive health, and pregnancy prevention. Empirical evidence (e.g., [1, 20, 25, 30, 37, 38] consistently demonstrates that open and effective communication is associated with safer sexual behaviours and improved reproductive health outcomes. Contextual factors included upbringing environment, accommodation type, and parental education level, representing broader structural and environmental influences that shape access to resources, exposure to social norms, and levels of supervision or autonomy. Empirical evidence shows that students’ residence status is linked to variations in risky sexual practices [7, 26, 31]. Differences in upbringing may also affect access to sexual health information and services, with rural students often facing greater limitations, while off-campus living may reduce supervision and increase opportunities for independent sexual decision-making [1]. Parental education was considered a broader environmental influence that shape students’ access to information and norms related to sexual and reproductive health during children’s growth. Figure 1 presents the conceptual framework developed for this study, illustrating the hypothesized relationships among individual, interpersonal, and contextual factors and their influence on SHLPP and RSB. Within this framework, SHLPP is conceptualized as a proximal outcome that may further influence engagement in RSB, highlighting the critical role of knowledge in shaping sexual health behaviours. Interconnectedness of influences on SHLPP and RSB Methods This quantitative study employed a cross-sectional research design and was conducted at Sokoine University of Agriculture (SUA). A multistage sampling approach was used to select participants. The first stage involved selecting data collection sites. At this stage, two of the five campuses of SUA, namely, Solomon Mahlangu and Edward Molinge were purposefully selected. One reason for selecting these campuses was their relatively higher student enrolment rates, which likely implied higher proportion of female students compared to the other campuses within SUA. By focusing on campuses with larger populations of female students, the study aimed to have a more representative sample and gain valuable insights into sexual behaviour among this specific demographic. The other reason was the fact that they were the only campuses that could not provide university housing facilities to all students, which allowed for an exploration of the influence of contextual factors (living arrangements) on RSB. The second sampling stage involved selecting study participants using a convenience (voluntary) sampling approach. Eligibility for inclusion was limited to only currently enrolled FUS, a decision informed by the disproportionate burden of UIP experienced by this demographic (Ministry of Health (MoH) et al., [22]) and the fact that they often report reliably whether they have ever been pregnant compared to males reporting whether they have ever impregnated someone [28, 39]. Sample size was estimated using the single population proportion formula [18]. With no prior population estimates, a conservative proportion of 50% (p = 0.5) was assumed to ensure the maximum required sample size. Using a 95% confidence level (Z = 1.96) and a 5% margin of error (d = 0.05), the minimum required sample size was 384. However, due to logistical constraints and the absence of an accessible sampling frame, 300 questionnaires were distributed across the campuses between January and March 2025. Approximately half of the questionnaires were distributed purposively and conveniently to off-campus housed FUS, while the remaining portion was distributed to FUS in on-campus university housing facilities. The distribution took place on Mondays from 7:00 am to 10:00 am, while collection was scheduled for Fridays between 2:30 pm and 5:30 pm at designated locations. This approach ensured a comprehensive representation of FUS residing both on and off-campus, allowing for an exploration of the contextual influences on SHLPP and RSB. As shown in Appendix 1, data were collected using a structured, 18-item self-report questionnaire, with five sections: socio-demographic characteristics, sexual experience, risky sexual behaviour (RSB), sexual health literacy for pregnancy prevention (SHLPP), and parent–child communication about sexual health issues (P-D_COMM). Questions in sections A and B demanded a dichotomous (Yes/No) response, while those in sections C, D, and E were 5-point Likert-scaled, ranging from Strongly Disagree (1) through Neutral (3) to Strongly Agree (5). Items in sections C, D and E were adapted from the Sexual Health Literacy and Preventive Behaviours Scale (Manwong et al., 2022) and the Sexual Risk Behaviour Scale [10] to ensure contextual relevance to female university students and to focus specifically on pregnancy prevention. This involved simplifying technical language, rephrasing items for clarity, and aligning statements with behaviours relevant to the study. For example, the first item in section D was adapted from the item which originally assessed general knowledge of contraceptive use and reproductive health practices. The third item in section C was modified to reflect pregnancy-related behavioural control from the item that originally measured general safe sexual practice negotiation. A pilot study involving 30 FUS from a neighbouring institution was conducted to assess clarity, relevance, and reliability of the instrument. Feedback indicated ambiguity in the last item in Section E (parent–child communication). Originally phrased as “I talk to my parents about sex issue,” this item was revised to “When I have questions about sexual health, I turn to my parents for answers” to improve clarity and better reflect help-seeking behaviour. Internal consistency of the Likert-scale sections was assessed using Cronbach’s alpha, with acceptable coefficients (0.66, 0.87 and 0.90) reported in sections C, D and E, respectively. Of the questionnaires distributed, 39 (13%) were not returned. This non-response may be attributed to several factors, including limited participant interest in the study, inconvenient timing of questionnaire collection, and the absence of reminder mechanisms for submission deadlines. Of the questionnaires returned, 255 (97.70%) were complete and deemed suitable for analysis. The remaining 2.3% were excluded due to incomplete responses on at least two items in Section A, which were necessary for assessing the influence of demographic variables on the study outcomes. The analysis was conducted using SPSS version 20. Variables were organised in accordance with the Social-Ecological Model guiding this study. Independent variables were grouped into three levels: individual factors (year of study), interpersonal factors (P-D_COMM), and contextual factors (upbringing environment, type of accommodation and parental education). The dependent variables were SHLPP and RSB. Descriptive statistics (frequencies, percentages, and means) were computed to provide a foundational understanding of the distribution and patterns of all variables prior to inferential testing. To address the first research objective, mean scores for SHLPP and RSB were categorised into three levels: low (1.00–2.32), moderate (2.33–3.66), and high (3.67–5.00). For the second objective, Factorial ANOVA was conducted to examine possible differences in RSB and SHLPP levels among FUS based on their year of study (first, middle, or final year), upbringing environment (rural or urban), parental education level (primary, secondary, or post-secondary), and type of accommodation during studies (on-campus or off-campus), and explore the interaction effects among these categorical variables on the dependent variables. The model included all main effects, two-way interactions, three-way interactions, and the four-way interaction. To address the final research objective, hierarchical multiple regression was conducted to identify predictors of SHLPP and RSB. For each regression model, independent variables were entered in blocks: individual and contextual factors in the first block, and interpersonal factor in the second block. This stepwise approach allowed for the assessment of the incremental effect of interpersonal factors beyond background and contextual characteristics. The inclusion of predictors in blocks (following SEM) ensures that key variables are tested independently before examining their combined effects. Students’ year of Study and education levels of their parents were treated as ordinal, as they reflect a clear progression in the students' academic careers. Prior to inferential analysis, key statistical assumptions were assessed. Normality, linearity, and homogeneity of variance were examined and found to be satisfactory. Multicollinearity among predictor variables was evaluated using Variance Inflation Factors (VIF), with all values below Kutner et al.’s [17] recommended threshold (< 5), indicating no multicollinearity concerns. Results Respondents’ demographic characteristics As presented in Table 1, the sample is almost evenly distributed across academic years, accommodation types, and continuing with university studies and their home backgrounds. Specifically, 32.2% of the respondents were in their first year, 40% in their second year, and 27.8% in their final year. In terms of living arrangements while continuing with university education, 52.9% of respondents lived off-campus, while 47.1% resided in on-campus accommodations. Further, almost half (52.9%) of the FUS grew up in rural backgrounds, while the rest were from urban settings. The education level of respondents’ parents varied, with 29.8% having parents with only primary education, 40.8% with secondary, and 29.4% with post-secondary education. Table 1Respondents’ demographic characteristicsVariableCategoriesfPercentage (%)Year of StudyFirst Year8232.2Second Year10240.0Final Year7127.8Parental EducationPrimary7629.8Secondary10440.8Post-secondary7529.4Parental Living PlaceRural13552.9Urban12047.1AccommodationOff-campus13552.9On-campus12047.1Sexual Intercourse ExperienceYes19576.5No6023.5Timing of First IntercourseBefore University10150.9During University10249.1 Respondents’ demographic characteristics Regarding sexual behavior, a significant number of respondents (76.5%) reported having engaged in vaginal intercourse, with 50.9% of them having had their first sexual encounter occurred before they joined university. Level of SHLPP and RSB As indicated in Table 2, only about one-third of FUS who reported engaging in vaginal sexual intercourse practices exhibited appropriate behaviours for preventing unintended pregnancy. These results indicated that the majority of students were in risks of getting unintended pregnancy outcomes. Table 2Level of RSB and SHLPP among FUSVariableLevelf%Risky Sexual Behavior (RSB)Low7336.3Medium7939.3High4924.4Sexual Health Literacy for Pregnancy Prevention (SHLPP)Low10240.0Medium8935.0High6425.0 Level of RSB and SHLPP among FUS In terms of SHLPP, the findings highlighted a significant knowledge gap, with nearly three-quarters (75.6%) of the total respondents displaying low to moderate levels of sexual health literacy for pregnancy prevention. This lack of adequate sexual health literacy could be contributing to the prevalence of risky behaviours. Differences in RSB by students’ upbringing contexts, year of study, and accommodation type As indicated in Table 2, the place where students were raised (i.e., their parents’ place of residence) had a statistically significant, though moderate, impact on RSB scores, F (1, 165) = 20.225, p < 0.001, with a partial η2 of 0.109. Post hoc test revealed that FUS from urban areas had higher RSB (M = 13.35, SD = 5.66) compared to those from rural areas (M = 9.81, SD = 6.07). The pairwise comparison confirmed this difference was statistically significant (p < 0.001). Likewise, significant albeit marginal differences in RSB scores across academic years were also noted, F (35,165) = 2.901, p < 0.001, η2ₚ = 0.324. Post hoc test revealed that first-year FUS had higher RSB (M = 13.13, SD = 4.32) compared to their counterparts in the final year (M = 10.53, SD = 6.74) or second year (M = 12.83, SD = 6.61). Pairwise comparisons indicated a significant difference in mean RSB score (2.306, p < 0.05) between second-year and final-year students. Further analysis revealed that the interaction between the education level of FUS’s parents and the place where FUS grew up had a significant influence on students’ RSB (F [2,165] = 3.696, p < 0.05, η2ₚ = 0.043), indicating that the effect of parental education on RSB of FUS varied depending on the parenting place. Similarly, another significant effect emerged when the education of respondents’ parents co-existed with the accommodation type secured by students as they continued with university studies (F [2, 165] = 4.938, p < 0.05, η2ₚ = 0.051). All other interactions were not statistically significant, suggesting that more complex interplays among the independent variables did not significantly contribute to explaining variance in RSB scores. Differences in SHLPP by upbringing contexts, year of study and accommodation type Table 3 summarizes result for this analysis. Of all the independent variables, only the place where FUS were raised (i.e., parental living place) indicated a small albeit significant effect on the SHLPP variable, F (1, 218) = 4.124, p < 0.05, η2ₚ = 0.019. Post hoc comparisons using the Hochberg test indicated a significant difference = (−1.187, p < 0.05) in SHLPP between FUS with rural backgrounds (M = 10.68, SD = 3.98) and their counterparts with urban backgrounds (M = 11.87, SD = 4.28). Table 3Differences in SHLPP and RSB by demographic factorsMeasureFactorF (df1, df2)pη2Group comparisonM (SD)RSBaParental Living Place17.817 (1,165).000.097Rural09.81 (5.66)Urban13.35 (6.07)Accommodation Type1.795(1,165).182.011Off Campus12.14 (4.82)On campus11.02 (6.91)aYear of university studies3.246 (2,165).041.0381 st Year11.51 (8.15)2nd Year12.83 (6.66)Finalists10.40 (6.87)aParental education1.497 (2,165).227.018Primary12.61 (7.32)Secondary11.27 (5.70)Post Sec10.86 (8.48)bParental Living Place × Parental Education3.696 (2,165).027.043bParental Education × Accommodation Type4.938 (2,165).008.051SHLPPaParental Living Place4.124 (1,218).044.019Rural10.68 (3.98)Urban11.87 (4.28)Accommodation Type0.406 (1, 218).525.002Off Campus11.46 (4.43)On campus11.08 (3.81)aYear of university studies2.480 (2,218).086.0221 st Year11.01 (5.60)2nd Year10.67 (4.43)Finalists12.14 (5.09)aParental education.612 (2,218).543.006Primary11.61 (5.23)Secondary10.91 (3.88)Post Sec11.31 (5.86)bParental Education × Accommodation Type2.32 (4,218).050.041a = Main effect of individual factorb = Interaction effects of multiple factors Differences in SHLPP and RSB by demographic factors a = Main effect of individual factor b = Interaction effects of multiple factors While accommodation type on its own did not significantly influence SHLPP, its interaction with a place where FUS grew up exerted a significant influence, F (4, 218) = 2.321, p = 0.05, η2ₚ = 0.041, suggesting a combined influence of these two independent variables on RSB. All other variables—independently or in combination—did not exhibit a statistically significant effect on the SHLPP outcome. Predictors of RSB and SHLPP Results of a hierarchical multiple regression analysis performed to examine the extent to which individual, contextual, and interpersonal factors predict sexual health literacy for pregnancy prevention (SHLPP) are summarized in Table 4. Students’ year of study (individual-level factor) entered in Model 1 did not significantly predict SHLPP, F(1, 199) = 0.061, p = 0.805 and explained no variance in SHLPP (R2 = 0.000). This suggests that progression through university levels does not, in itself, translate into higher SHLPP. Contextual factors (upbringing environment, accommodation, and parental education) added in Model 2 resulted in a significant improvement of the model (F[4, 196] = 6.81, p < 0.001), explaining 12.2% of the variance in SHLPP. Among these, upbringing environment emerged the only significant predictor (β = 0.370, p < 0.001), indicating that students’ background contexts play an important role in shaping sexual health literacy. In Model 3, interpersonal-level factor (parent–daughter communication [P-D_COMM]) was introduced, significantly improving the model, F(5, 195) = 10.96, p < 0.001, with the total explained variance increasing to 21.9% (ΔR2 = 0.097). In this final model, both upbringing environment (β = 0.311, p < 0.001) and PDCOMM (β = 0.318, p < 0.001) remained significant predictors of SHLPP. The addition of P–D communication contributed unique explanatory power beyond individual and contextual characteristics, highlighting the importance of interpersonal processes in shaping SHLPP. These findings indicate that interpersonal (parent-daughter communication) and contextual factors (especially upbringing environment) play a more substantial role than individual characteristics in shaping sexual health literacy among female university students. Other factors may exert indirect or context-dependent influences rather than direct effects on SHLPP. Table 4Predictors of SHLPPModel and PredictorsRegression CoefficientsOverall Model StatisticsBSE Bβ95% CIF (df1, df2)ΔR21Year of study.027.111.018[−.191,.246]0.06 (1, 199).0002Year of study.038.109.024[−.177,.252]6.81 (4, 196)***.122Accommodation type−.269.171−.110[−.607,.069]Parental Education−.117.113−.073[−.341,.107]Upbringing context.898.173.370***[.557, 1.239]3Year of study.051.103.033[−.152,.254]10.96 (5, 195)***.097Accommodation type−.254.162−.104[−.574,.065]Parental Education−.132.107−.083[−.343,.080]Upbringing context.754.166.311***[.427, 1.082]P-D_COMM.452.092.318***[.271,.633]Model 1 Adj. R2 = −.005; Model 2 Adj. R2 =.104; Model 3 Adj. R2 =.199*** = p <.001 Predictors of SHLPP Model 1 Adj. R2 = −.005; Model 2 Adj. R2 =.104; Model 3 Adj. R2 =.199 *** = p <.001 Results for the second hierarchical multiple regression analysis conducted to examine predictors of risky sexual behavior (RSB) is presented in Table 5. In Model 1, year of study did not significantly predict RSB, F(1, 199) = 0.321, p = 0.571, explaining only 0.2% of the variance. Contextual factors were introduced in Model 2. Although upbringing environment showed a small significant effect at this stage (β = 0.175, p = 0.020), the overall model did not substantially explain variation in RSB (F[4, 196] = 1.88, p = 0.116; R2 = 0.037), suggesting that contextual factors alone provide limited explanatory power. The inclusion of interpersonal-level factor (P-D_COMM) led to a substantial and statistically significant improvement of the model, F(5, 195) = 10.68, p < 0.001, with explained variance increasing to 21.5% (ΔR2 = 0.178). In this third model, parent-daughter communication emerged a strong predictor of RSB (β = 0.430, p < 0.001). This pattern indicates that interpersonal dynamics may supersede contextual influences when both are considered simultaneously. In Model 4, SHLPP was added. The overall model remained significant, F(6, 194) = 9.18, p < 0.001, with a total explained variance of 22.1% (ΔR2 = 0.006). SHLPP itself was not a significant predictor (β = 0.088, p = 0.221), indicating that higher levels of SHLPP were not associated with reduced engagement in risky sexual behavior in this sample. Across all models, Parent-Daughter communication remained the only consistent and significant predictor of RSB (β = 0.402, p < 0.001). The findings suggest that interpersonal dynamics play a more central role in shaping risky sexual behavior than individual knowledge or structural background factors. Table 5Predictors of RSBModel and predictorsRegression CoefficientsOverall Model StatisticsBSE Bβ95% CIF (df1, df2)ΔR21Year of study.047.083.040[−.114,.192]0.321 (1, 199).0022Year of study.025.086.021[−.144,.194]1.875 (4, 196).035Accommodation type.089.135.049[−.177,.355]Parental education-.024.089-.020[−.200,.152]Upbringing context.319.136.175*[.051,.587]3Year of study.039.077.033[.323,.595]10.683(5, 195)***.178Accommodation type.104.122.057[−.136,.345]Parental education-.040.081-.033[−.199,.120]Upbringing context.173.125.095[−.073,.420]P-D_COMM.459.069.430***[.323,.595]4Year of study.36.077.030[−.117,.188]9.176 (6, 194)***.006Accommodation type.121.123.066[−.121,.363]Parental education-.031.081−.026[−.191,.129]Upbringing context.123.131.068[−.136,.382]P-D_COMM.429.073.402***[.285,.574]SHLPP.066.054.088[−.040,.172]Model 1 Adj. R2 = −.003; Model 2 Adj. R2 =.017; Model 3 Adj. R2 =.195; Model 4 Adj. R2 =.197; *** = p <.001; **p <.01; * = p <.05 Predictors of RSB Model 1 Adj. R2 = −.003; Model 2 Adj. R2 =.017; Model 3 Adj. R2 =.195; Model 4 Adj. R2 =.197; *** = p <.001; **p <.01; * = p <.05 Discussion This study examined levels, differences, and predictors of Sexual Health Literacy for Pregnancy Prevention (SHLPP) and engagement in Risky Sexual Behavior (RSB) that potentially lead to Unintended Pregnancy (UIP) among Female University Students in Tanzania. Guided by the Social-Ecological Model (SEM), it explored how individual, interpersonal, and contextual factors influence these variables. To provide a coherent interpretation, the discussion is organized according to the study’s three objectives, while situating the findings within existing literature and the SEM framework. Levels of SHLPP and engagement in RSB The findings reveal that a nearly three-quarters of study participants demonstrated low to moderate levels of SHLPP, while a considerable proportion engaged in behaviors that increase the risk of unintended pregnancy (UIP). Notably, only about one-third of sexually active respondents reported behaviors consistent with effective pregnancy prevention. These findings align with previous studies in Sub-Saharan Africa, including Tanzania (e.g., [4, 5, 16, 24]) and global reports [34], which consistently show that young women remain vulnerable to UIP. When interpreted through the lens of the SEM, these findings indicate that knowledge at the individual level alone may not be adequate to promote safe sexual behaviors. The persistence of RSB despite moderate levels of SHLPP reinforces the argument that sexual decision-making is embedded within broader social and environmental contexts. This finding is consistent with the well-established “knowledge–behaviour gap” (;Jeckoniah, 2018; [29]), which suggests that possessing SHLPP does not automatically lead to reduced RSB. Contextual and interpersonal influences and situational pressures can outweigh what individuals know when making sexual decisions. However, these findings generally call into question the sustained effectiveness of integrated sexual health education in Tanzania—whether in terms of curriculum content, modes of delivery, or mechanisms for reinforcement across different educational levels. Similar concerns have been highlighted in earlier studies by Dunor and Urasa [9] and Shimpuku et al. [29]. Perhaps more importantly, the high proportion of respondents reporting sexual debut prior to university entry highlights that risk exposure begins earlier in the life course. This supports existing literature [23] and suggests that university-based interventions may be necessary to address behaviors that are already established. More importantly, preventive efforts need to begin earlier and be sustained across developmental stages. Differences in SHLPP and RSB across individual, interpersonal, and contextual factors The analysis of group differences revealed that contextual and interpersonal factors were more influential than individual characteristics. At the individual level, year of study of FUS did not significantly influence SHLPP and had only marginal effects on RSB. This finding suggests that students in earlier stages of university life may be more vulnerable to engaging in risky sexual behaviors, possibly due to transitional challenges such as new social environments, increased autonomy, and adaptation to university life. This pattern is consistent with studies that link early university years with experimentation and risk-taking behaviors (e.g., [28, 36]). Equally important, findings of this study challenge the assumption that increased age or academic progression naturally leads to improved sexual health literacy, suggesting that the influence of year of study on SHLPP is mediated by factors at higher levels of the SEM. At the contextual level, upbringing environment emerged as a significant factor influencing both SHLPP and RSB. Students from urban backgrounds demonstrated higher levels of SHLPP and RSB compared to their rural counterparts. This dual pattern reflects the complexity of contextual influences, supporting typical assumption that urban environments tend to provide greater access to reproductive health information through media, health centres, or informal peer networks [20, 38] whilst also expose individuals to more permissive norms, reduced social control, and increased opportunities for sexual engagement [29]. Such observations have been documented previously in other settings [1, 31]. This this indicates that the same contextual condition (e.g., urban upbringing in this study) may simultaneously operate in different—and even opposing— ways. This aligns with the SEM assumption that factors at the same level influence multiple outcomes through distinct pathways. The interaction effects between parental education, upbringing environment, and accommodation type revealed by this study underscore the interconnectedness of contextual factors described by the SEM. In this study, for example, parental education (which did not independently produce significant differences in either SHLPP or RSB) had a varied influence depending on whether a student lived on- or off-campus or whether they were raised in rural or urban settings. Similarly, accommodation type provides a particularly nuanced insight. Although it did not have a statistically significant main effect on either SHLPP or RSB, it played an important role through its interaction with other contextual variables. This suggests that living on- or off-campus does not inherently increase or reduce risk; rather, it functions as a conditional contextual factor, shaping how other influences translate into behavioral outcomes. For instance, the increased autonomy associated with off-campus living may elevate risk only under certain background conditions, while for other students it may have little or no effect. These findings, however, partly contradict prior research [4, 7, 26, 31], which links off-campus residence to higher risky sexual behavior due to reduced institutional control and greater exposure to permissive lifestyles, including cohabitation. While such studies view university living environments as active determinants of behavior, in this study they operate as a conditional factor whose effects are shaped by interactions with other contextual and interpersonal variables. Thus, accommodation is better understood as part of an interconnected system of influences rather than an independent predictor of behavior. Predictive effects of individual, interpersonal, and contextual-level factors on SHLPP and RSB, and the role of SHLPP The regression analyses provide further insight into the relative importance of different levels of influence. Interpersonal factors—specifically parent–daughter communication emerged as the most consistent and powerful predictor of both SHLPP and RSB. Students who reported more open sexual-health-focused communication with their parents demonstrated higher levels of SHLPP and lower engagement in RSB. These findings resonate with those reported previously (e.g., [1, 25, 30, 37, 38]), challenging the assumption that university students are beyond the reach of parental guidance and underscoring the need to promote positive parenting styles and communication strategies throughout the growth stages—even beyond university. Within the SEM, this underscores the central role of interpersonal relationships in mediating behavioral outcomes. Parental communication may function as both a direct influence—through guidance and information—and an indirect influence—by shaping values, self-efficacy, and risk perception [25, 38]. The fact that parent–daughter communication remained significant even after controlling for contextual variables suggests that interpersonal dynamics can buffer or amplify broader structural influences. Contextual factors, particularly upbringing environment, also contributed to SHLPP, though their predictive power diminished when interpersonal factors were introduced. This pattern indicates that while structural conditions shape access to information and experiences, their effects are often mediated through social relationships. This finding reinforces the SEM proposition that proximal influences (e.g., family interactions) tend to have stronger behavioral effects than distal structural factors. A particularly important finding is that SHLPP did not significantly predict RSB. This challenges conventional assumptions underpinning many sexual health interventions, which prioritize knowledge enhancement as the primary and sometimes the only pathway to behavior change. This finding supports earlier research (; Jeckoniah, 2018; [5, 29]), which highlights a persistent “knowledge–behaviour gap” in sexual and reproductive health. From a Social Ecological Model (SEM) perspective, this suggests that sexual behaviour is not solely determined by individual knowledge but is shaped by broader interpersonal and contextual influences. Summers et al. [30] and Mmari and Sabherwal [23] remind us of the roles that the milieus of the background in which the females grow play on sexual behaviours. The present study findings echo this reminder. Overall, the SEM provides a useful lens for understanding these layered influences, demonstrating that effective interventions must operate across multiple levels as argued by McLeroy et al. [21] and DiClemente et al. [8]. Implications Consistent with the Social-Ecological Model, these findings necessitate the need to consider the multifaceted influences of individual, interpersonal, and contextual factors when addressing the pregnancy likening sexual behaviour among FUS. Interventions targeting FUS must go beyond formal education and address the socio-ecological realities shaping their behaviour. First, findings reported highlight the need to extend sexuality education beyond secondary school, ideally incorporating peer-led workshops, university orientation modules, and counselling services targeted at university students. Social policies at universities should focus on enhancing sexual health education and access to reproductive health resources, particularly for FUS residing in off-campus private housing facilities. Comprehensive sexual health education programs should be implemented, emphasising the importance of practicing safe sexual behaviours and techniques to prevent UIPs. Additionally, efforts should be made to improve access to affordable and confidential reproductive health services, including contraception, in both on-campus and off-campus settings. By empowering FUS with knowledge and resources to make informed decisions about their sexual health, policymakers can help mitigate the risks associated with concurrent sexual partnerships and promote overall well-being among this demographic. Second, the strong predictive role of parent–student communication suggests that family-focused interventions—even at the tertiary level—can positively influence student behaviour. Institutions should explore ways to facilitate or simulate parental roles in enhancing the sexual and reproductive health of their children, especially during the transitional period to university life. These measures are necessary considering the fact that half of the participants reported that their first sexual contact happened before they started university studies. Considering this fact, initiatives should target to equip parents with the necessary education required to engage in open and regular discussion about sexual conduct with their children. Parents should also be taught the importance of doing this until their children complete college. Universities could develop outreach programmes or online resources to help parents initiate age-appropriate discussions. Third, higher learning institutions (universities included) may need to re-evaluate the support systems available to off-campus FUS, who appear particularly vulnerable. Because off-campus and private housing impacted the outcome factors, the university administration should consider expanding housing facilities. Furthermore, these findings call for university managements to utilise information about FUS’s demographic and background information when allocating them to the currently available on-campus housing facilities. Limitations This study has several limitations. First, the cross-sectional design limits the ability to establish causal relationships between variables. Second, the use of self-reported data may have introduced social desirability and recall biases, particularly given the sensitivity of sexual behavior. Third, the convenience sampling approach and focus on a single university may limit the generalizability of the findings to other populations or settings. Additionally, the study did not include male students or capture the influence of peers and partners, which may play significant roles in shaping sexual behavior. Future studies should address these limitations by employing longitudinal designs, more diverse samples, and mixed-method approaches. Conclusion Generally, the level of risky sexual behaviours and sexual health literacy for pregnancy prevention varied significantly among FUS based on individual, interpersonal, and contextual factors, reflecting assumptions of the Social-Ecological Model. These findings highlight a disconnect between early sexual health education and behavioural outcomes among university students. Interventions should be multi-layered: strengthening school curricula with more engaging, practical content; establishing structured mentorship and peer-education initiatives in universities; and promoting sustained parent–child communication even beyond adolescence. Together, these strategies may reduce the prevalence of RSB and UIPs among female university students in Tanzania and other similar contexts. Acknowledgements The authors wish to thank the female university students who voluntarily participated in this study and the administration of Sokoine University of Agriculture for granting permission to conduct the research. Appendix Survey items VariableTypical questionsResponse typeDemographic profiles of respondentsStudents’ year of study,Type of students’ accommodationParents’ place of residenceParents’ education levelYes/NoSexual intercourse experienceI engaged in sexual intercourse at least once in my lifeI had first sexual intercourse experience before I started university educationYes/NoRSBI have had no vaginal sexual intercourse occasions without a condomIf no contraception (condom or pills) is available, I prefer to engage in non-penetrative sex or abstain from sexual activityI stop foreplay long enough for my partner to put on a condomI avoid sexual activity unless I am certain that proper pregnancy prevention measures are in placeLikertSHLPPI understand how to correctly use at least one contraceptive method to effectively prevent pregnancyI know the exact time and events I should take pregnancy-prevention contraceptivesI know different contraceptive methods available for pregnancy preventionI am aware of where and how to access contraceptive services and resources on or off campusLikertP-D_COMMMy parents are proactive in initiating conversations about sexual health and sexualityMy parents discuss with me issues related to sexualityMy parents regularly check in with me to see if I have questions about sexual healthWhen I have questions about sexual health, I turn to my parents for answersLikert Students’ year of study, Type of students’ accommodation Parents’ place of residence Parents’ education level I engaged in sexual intercourse at least once in my life I had first sexual intercourse experience before I started university education I have had no vaginal sexual intercourse occasions without a condom If no contraception (condom or pills) is available, I prefer to engage in non-penetrative sex or abstain from sexual activity I stop foreplay long enough for my partner to put on a condom I avoid sexual activity unless I am certain that proper pregnancy prevention measures are in place I understand how to correctly use at least one contraceptive method to effectively prevent pregnancy I know the exact time and events I should take pregnancy-prevention contraceptives I know different contraceptive methods available for pregnancy prevention I am aware of where and how to access contraceptive services and resources on or off campus My parents are proactive in initiating conversations about sexual health and sexuality My parents discuss with me issues related to sexuality My parents regularly check in with me to see if I have questions about sexual health When I have questions about sexual health, I turn to my parents for answers Authors’ contributions N.M.M. participated in the conception, design of the study and coordinated the data collection. He also analysed and interpreted the data and prepared the first draft of the manuscript. T. L. L. conceived the study and participated in data collection. She also participated in data interpretation and proofreading the manuscript before submission. All authors read and approved the final manuscript. Funding This research did not receive any grant from public, private, or not-for-profit funding agencies. Data availability No datasets were generated or analysed during the current study. Declarations Ethics approval and consent to participate Ethical approval was granted by the Ethical Review Committee of the Sokoine University of Agriculture. Data were collected after written consent had been secured from the study participants following detailed explanations of the study’s aim, purpose, level of confidence, benefits, and potential risks. Participation in the study was entirely voluntary and all respondents were guaranteed complete confidentiality. To safeguard participants’ anonymity, each questionnaire had a special code, and all data were kept confidential. The research was carried out in accordance with the principles of the Declaration of Helsink. Consent for publication Not applicable. Competing interests The authors declare no competing interests. Footnotes Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Data Availability Statement No datasets were generated or analysed during the current study.