1 Introduction

Experiencing positive interpersonal relationships is crucial to individual’s development and wellbeing as it contributes to a sense of belonging. Conversely, experiencing a lack of such relationships can lead to a sense of deprivation, which can manifest itself in feelings of loneliness (Baumeister and Leary 1995; Heinrich and Gullone 2006). Adolescents are in a developmental period characterized by biological and social transitions and may therefore be particularly prone to feeling lonely (Goosby et al. 2013; Heinrich and Gullone 2006). Adolescence is also a time when relationships with peers relative to parents become increasingly more important (e.g. Hafen et al. 2012). Research has consistently demonstrated that the quality of students’ relationships with peers is closely linked with their experiences of loneliness at school (e.g. Heinrich and Gullone 2006). All the same it is unclear in what ways other classroom factors, such as teacher support and the social environment in the classroom, influence on students’ feelings of school loneliness, and moreover whether these associations are dependent of gender. This study thus sought to investigate the relations between students’ perceptions of social support from teachers, their experiences of the social classroom environment, and loneliness among a sample of first year upper secondary school students in Norway. A clarification of these relationships can help identify protective factors within the school context, which can be of considerable utility for teachers and others who work with adolescents in the school setting.

1.1 Loneliness

Loneliness can be regarded as a negative emotion arising out of the incongruity between a person’s desired and actual social relationships (Perlman and Peplau 1981). This adverse experience is generally considered to stem from a lack of sense of social connectedness with others rather than a lack of actual social contact. It thus refers to the quality rather than the quantity of social relationships (Heinrich and Gullone 2006; Perlman and Peplau 1981, 1982). Although most people occasionally feel lonely, some experience more persistent and severe feelings of loneliness. The adverse impact that loneliness can have on adolescents’ wellbeing has been widely documented in the literature. Studies have for instance linked loneliness during adolescence and early adulthood with poorer general health (Harris et al. 2013; Mahon et al. 1993), reduced sleep quality (Cacioppo et al. 2002), eating problems (Rotenberg and Flood 1999), and higher mortality rates (see Cacioppo and Cacioppo 2012).

The causes of loneliness are complex, and may include environmental, societal, relational as well as individual factors (e.g. Heinrich and Gullone 2006; Krause-Parello, 2008). Moreover, it can be problematic to distinguish the causes and consequences of loneliness apart, as the path of causality between loneliness and the factors commonly associated with it is often bidirectional (Heinrich and Gullone 2006). Some of the recognized predictive conditions nonetheless include characterological traits like shyness (Woodhouse et al. 2012), introversion (Hawkins-Elderet al. 2018), neuroticism (Vanhalst et al, 2012), poor social skills (Segrin and Flora 2000), and related behaviours such as social withdrawal and avoidance (London et al. 2007; Watson and Nesdale 2012). Loneliness has also been reciprocally and adversely associated with self-esteem (e.g. Vanhalst et al. 2013) and mental health problems such as social anxiety (Lasgaard et al. 2011a, b; Maes et al. 2019) and depression (Ladd and Ettekal 2013; Lasgaard et al. 2011a, b; Vanhalst et al. 2012).

Previous research has established that loneliness can occur within different contexts, such as the family, romantic relationships, and in school (Chipuer 2001; Ditommaso and Spinner 1997; Lasgaard, Goossens, Bramsen, et al. 2011a, b). The focus of the present article is adolescent loneliness in the school context. This topic has been extensively studied to date, and school loneliness has been linked with factors such as lower academic achievement (Levitt et al. 1994), impaired academic progress and exit exam success (Benner 2011), and intentions to leave upper secondary school early (Frostad et al. 2015; Haugan et al. 2019).

1.1.1 Perceived teacher support and student loneliness

Although teacher support is a broad term encompassing various dimensions, researchers have commonly distinguished between emotional and instrumental support (e.g. Federici and Skaalvik 2014; Semmer et al. 2008). Perceived emotional support refers to students’ perceptions of their teachers as caring, friendly, empathetic and trustworthy, whereas perceived instrumental support points to students’ perceptions of receiving academic help and support from their teachers.

A number of studies have documented the significant role of perceived teacher support to student’s well-being and academic adjustment (Katz et al. 2009; Malecki and Demaray 2003; Natvig et al. 2003; Patrick et al. 2007; Suldo et al. 2009; Wentzel et al. 2010). The role of the teacher in adolescent’s loneliness has however received little empirical attention. Moreover, the few studies examining these associations have mainly focused on children (e.g. Birch and Ladd 1997). As noted by Parkhurst and Hopmeyer (1999), there will likely be differences in the causes and correlates of loneliness between children and adolescents, due to changes in cognitive development and in the significance of social relationships as children move into adolescence. Although researchers have emphasized the teacher’s important role in contributing to reducing student loneliness (e.g. Galanaki and Vassilopoulou 2007; Rokach 2016), only two studies were found that provide empirical data on this association. Frostad et al. (2015) found that emotional teacher support was significantly and negatively correlated with school loneliness in a sample of Norwegian adolescents (r = −0.13). Results from an earlier study by Dobson, Campbell, and Dobson (1987) moreover showed that students’ perceptions of the quality of the classroom environment created by the teacher was inversely related to their feelings of loneliness (r = −0.20) (Dobson et al. 1987). Otherwise, this relation remains largely unexplored.

1.1.2 Social classroom environment and student loneliness

Previous research has described the social classroom environment in various ways. While some have related it to social relationships between students, and students and teachers (e.g. Patrick et al. 2007), others have linked it to the social atmosphere or climate in the classroom (e.g. Cava et al. 2010; Cava et al. 2007). With regard to loneliness, researchers have particularly devoted their attention to the peer group in school. Not surprisingly, important risk factors for school loneliness include social difficulties such as peer victimization (Lester et al. 2013; Woodhouse et al., 2012), bullying (Segrin et al. 2012) and negative peer acceptance status (Sletta et al. 1996; Woodhouse et al., 2012). Sociometric classroom studies have moreover demonstrated that lonely adolescents tend to have fewer friends in class (Lodder et al. 2017), and to report lower quality in the friendships they do have (Parker and Asher 1993; Vanhalst et al. 2014). Notably, students’ perceptions of having supportive and caring peers have been found to moderate the relationship between victimization and loneliness (Storch et al. 2003).

Little empirical attention has however been given to the associations between loneliness and social factors within the school environment that go beyond the direct relationships between peers. Results from the handful of studies that have investigated this indicate that adolescents’ perceptions of a positive classroom environment and their sense of connectedness to school are negatively related to global loneliness (β = −0.15 – −0.28) (Cava et al.2010, 2007; Pretty et al. 1994). None of these studies have however focused their attention on how the social classroom environment relates specifically to school loneliness. Given the importance of a positive social school environment for students’ wellbeing and learning (e.g. Jamal et al. 2013), this is regarded as an important area to investigate further.

1.1.3 Gender differences in perceptions of the social classroom environment, teacher support and loneliness

Considering the general lack of research on the association between students’ perceptions of teacher support, the social classroom environment and loneliness, few relevant studies were found on how gender might moderate these relationships. One exception was a study that found the relationship between the classroom environment and loneliness to be stronger for adolescent boys than girls (β = −0.28 for boys and −0.16 for girls) (Cava et al. 2010). The following section will thus review some of the literature on gender differences in levels of loneliness and teacher support.

Regarding gender differences in levels of teacher support, some studies have shown that girls tend to report higher emotional support (Låftman and Modin 2012) and a greater degree of closeness with their teachers (Drevets 1996; Wyrick 2011), whereas boys tend to report higher levels of instrumental teacher support (Låftman and Modin 2012). Results from an earlier meta-study by Kelly (1988) moreover suggested that boys tend to have more tangible and instructional contact with teachers than girls. Other empirical work has however found no gender differences in perceived teacher support (Danielsen et al. 2009).

Research on gender differences in adolescent loneliness has led to contrasting results. To the extent that gender differences have been reported among adolescents, boys have tended to display higher loneliness rates than girls (e.g. Koenig and Abrams 1999; Koenig et al. 1994). Conversely, results from the Norwegian Ungdata surveys have shown a female predominance in self-reported loneliness (Bakken 2017, 2018, 2019). Ungdata are nationally representative surveys conducted every three years among school students in Norway (from grade 5 to 13). The study covers thematic areas such as parents, friends, school, the local environment, leisure activities, health and well-being (Ungdatasenteret 2020).

In an earlier meta-study, Borys and Perlman (1985) noted that while girls were more apt to label themselves as lonely (self-labelling), boys tended to display higher loneliness scores in self-report studies. In Ungdata, loneliness was measured by use of one question asking about the degree to which the students had experienced loneliness in the last week, and this may be viewed as a form of self-labelling. These opposing findings concerning loneliness and gender may therefore, at least in part, be explained by method of assessment (Heinrich and Gullone 2006).

1.2 Purpose of the study and theoretical model

Taken together, there appears to be a gap in the literature on the associations between student’s perceptions of teacher support, the social climate in the classroom and loneliness, and on how these relations may vary by gender. There also seems to be a lack of longitudinal studies on school loneliness. The present study thus sought to extend on the previous research by investigating these variables across two time points. Findings from previous work that has emphasized the importance of positive social relationships and a positive social classroom environment for students’ loneliness, led to the formulation of two main hypotheses. Specifically, it was hypothesised that:

  1. (1)

    Positive perceptions of teacher support would (a) positively predict the social classroom environment and (b) negatively predict loneliness.

  2. (2)

    Positive perceptions of the social classroom environment would negatively predict loneliness.

Due to the mentioned lack of, and somewhat inconsistent results presented in previous research, no gender-specific hypotheses were formulated regarding the relationships between teacher support, the social classroom environment and loneliness. Rather, these investigations are exploratory in their nature. The theoretical model is displayed in Fig. 1.

Fig. 1
figure 1

Path diagram showing specified hypothesized structural relationships and measurement specification

2 Method

2.1 Participants and procedure

The sample comprised 3149 first year upper secondary school students (aged 15 and 16) from 17 upper secondary schools in Norway. Data were collected twice in the school year 2017/18 by means of electronic self-reporting questionnaires administered in school classes. The first survey was conducted approximately ten weeks into the school year in 2017 (t1), and the second survey was carried out in March/April 2018 (t2). Some classes did, for unknown reasons, not respond to the survey within the allotted time. At t1 there were 24 classes in six schools that did not participate, while at t2, this applied to 19 classes in five schools. These classes constituted the bulk of non-responses. Finally, the number of participating students were 2,501 at t1, and 2,422 at t2.

The data were examined for differences in respondent characteristics between the students who participated only at t1 (n = 402) or t2 (n = 323), and those who had responded to both surveys. Chi-square tests and t-tests showed that there were no significant differences in variables such as mother’s education level, gender, mean grades, or field of study (general or vocational education) between these groups. The 725 students who had responded to only one of the two surveys were omitted from the main analyses. This yielded a final sample of 2099 students and a response rate of 67%. Of these, 1240 (59%) were female.

All schools appointed a contact person who was responsible for providing the necessary information and assistance to teachers and students. Students, teachers and parents received and information sheet, which informed that students had a right to withdraw from participation at any time, and that they were considered to have given their consent to participate by responding to the questionnaire. Prior to responding to the survey, students in each class were shown an information video recorded by the author. The video explained the rationale of the study and encouraged the students to answer the questionnaire properly. Parental consent was attained from students under the age of 16, and the project was approved by the Norwegian Centre for Research Data (NSD).

2.2 Measures

All items were designed and administered in Norwegian. The response categories for all statements except gender were on a 6-point scale, ranging from 1 = strongly disagree through 6 = strongly agree. All items were averaged for a scale score.

2.2.1 Exogenous variables

Perceived teacher support Instrumental and emotional teacher support were measured by four items each. The scale for instrumental support was modified from an instrument developed by Frostad et al. (2015) and later slightly adapted by Tvedt (2017). Example items are: ‘My teachers try to answer my academic questions’ and ‘My teachers explain to me what I don't understand’. Emotional support was modified from a widely used scale developed by the Norwegian Centre for Learning Environment and Behavioral Research in Education (e.g. Bru et al. 1998; Tvedt et al. 2019). This scale comprises statements such as: “My teachers care about me’ and ‘I can trust my teachers’.

2.2.2 Endogenous variables

Social classroom environment This measure encompasses the social climate in the classroom, and more specifically students’ perceptions of having supportive relations to their peers and their sense of belonging to the class. Three of the items were adapted from questions created by the VIP School Programme (2015, 2016), and example statements are: ‘I always have someone to be with during breaks’, and ‘I have made new friends in class’. The three remaining statements were made for the present study and include items such as: ‘I always have someone to sit together with in class’. Higher scores indicate more positive perceptions of the social classroom environment.

Loneliness Loneliness was measured by using a Norwegian version of the Loneliness and Social Dissatisfaction Questionnaire (Asher and Wheeler 1985; Valås 1999). This scale has a clear school focus and has been used in several studies to measure school loneliness (e.g. Frostad et al. 2015; Galanaki and Vassilopoulou 2007). Example items are ‘I have no one to be together with at school’ and ‘I feel lonely at school’. High scores indicate higher levels of school loneliness.

Gender A dichotomous variable indicated whether the adolescent is female (1) or male (2).

3 Analyses

Preliminary analyses were conducted in SPSS 26, whereas confirmatory factor analysis (CFA) and structural equation modelling (SEM) were conducted using the lavaan package in R. Because initial tests indicated that the residuals were non-normal, robust estimators were calculated using MLM (Maydeu-Olivares 2017; Savalei 2018). These tests require complete data, and prior to conducting the SEM-analyses, missing data estimates were computed through regression imputation with maximum likelihood (Allison 2002). Data were assumed to be missing at random (MAR), as separate variance t-tests showed that none of the items significantly affected whether data were missing in any of the other items. All items had missing values < 2.7% of the total sample. All models were based on the complete data set.

First, three measurement models were tested by using CFA. Next, the relationships between the latent variables were examined by means of SEM. SEM is a recommended analytical tool to examine relationships among latent constructs in longitudinal studies (Lei and Wu 2007). The goal of SEM is to estimate the relationships among hypothesized latent constructs, and to test whether the hypothesized theoretical model corresponds with the collected data. Due to the large sample size, χ2 was not used to evaluate model fit (Hair et al. 2014). Rather, the assessment of goodness of fit was guided by fit criteria of CFI and TLI > 0.95, RMSEA < 0.07, and SRMR < 0.08 (Hooper et al. 2008; Kline 2011).

4 Results

4.1 Correlations and descriptive statistics

Table 1 shows correlations between the variables, statistical means, standard deviations, Cronbach’s alphas and effect sizes for the mean differences between gender. All latent variables were significantly correlated with one another. All correlations were below 0.68, which implies that multicollinearity is not a concern. Boys reported higher levels of both instrumental and emotional teacher support compared to girls. Moreover, boys had significantly higher loneliness scores than girls at t2, but the effect size was small/insignificant (Cohen and Steinberg 1992). All variables demonstrated high reliability.

Table 1 Bivariate correlations and descriptive statistics of the study variables

4.2 Measurement models

The factor structure of the latent variables was assessed by testing three measurement models using CFA. Fit statistics were compared across these models in a stepwise procedure (Hair et al. 2014). The first model included the two exogenous variables (instrumental and emotional teacher support), while the second model included the three intermediate variables (social classroom environment at t1 and t2 and loneliness at t1). Finally, the third model included all six variables. Because the data are longitudinal, the residuals for the items measuring the same phenomenon at t1 and t2 were allowed to correlate (Little 2013). Table 2 shows that the complete model had good fit with the data, and this indicates that the items constitute six distinct constructs.

Table 2 Measurement models (CFA) with fit indices and standardized factor loadings

4.3 Structural models

The relations between the variables were further explored by means of SEM. First, a model was constructed based on the hypothesized model shown in Fig. 1. The model (referred to as Model 1) specified emotional and instrumental teacher support as exogenous variables. These were expected to be positively related to the social classroom environment at t1 and t2, and negatively related to loneliness at t1 and t2. Moreover, the social classroom environment at t1 was expected to be negatively related to loneliness at t1 and positively related to the social classroom environment at t2. Next, loneliness at t1 was expected to be positively related to loneliness at t2, whereas the social classroom environment at t2 was expected to be negatively related to loneliness at t2. The residuals among corresponding parallel indicators at t1 and t2 were allowed to correlate. Model 1 showed good fit with the data, with robust RMSEA = 0.041 (90% CI: 0.038–0.043), CFI = 0.965, TLI = 0.961 and SRMR = 0.045.

Figure 2 shows estimates of standardized regression weights for all variables and squared multiple correlations. First, instrumental and emotional teacher support were positively and moderately related to the social classroom environment at t1. While neither instrumental nor emotional teacher support were directly related to loneliness at t1, both were indirectly related to loneliness at t1 through the social classroom environment at t1 (β = −0.129, p < 0.001 for emotional support and −0.191, p < 0.001 for instrumental support). The social classroom environment at t1 was strongly and negatively related to loneliness at t1. Loneliness at t2 was strongly and negatively related to social classroom environment at t2 and positively related to loneliness at t1. The social classroom environment at t1 was moreover indirectly related to loneliness at t2 through both loneliness at t1 (β = −0.217, p < 0.001) and the social classroom environment at t2 (β = −0.431, p < 0.001). Before conducting the further analyses, nonsignificant paths and covariances were removed from Model 1. Table 3 shows that the trimmed model, referred to as Model 2, had good fit to the data.

Fig. 2
figure 2

Structural model of relations between the latent constructs and squared multiple correlations (Model 1)

Table 3 Model comparison of invariance levels, fit indexes and model fit change

4.4 Measurement invariance across gender

Prior to conducting separate analyses for gender, Model 2 was checked for measurement invariance. Changes in CFI ≤ −0.010 and RMSEA ≤ 0.015 from the baseline model were used as limit values (Chen 2007). Table 3 shows that the changes in the CFI and RMSEA values across the models were acceptable, and this implies that the data meet requirements of configural, metric, scalar and strict invariance (Wu et al. 2007). As such, cross-gender comparisons of the relationships between the latent factors could be conducted.

4.5 Final model with different paths for gender

Finally, a model (referred to as Model 3) was constructed that specified different paths for gender. Model 3 showed good fit to the data for both genders, with robust RMSEA = 0.044 (90% CI: 0.040–0.047), CFI = 0.961, TLI = 0.956 and SRMR = 0.048 for girls, and RMSEA = 0.037 (90% CI: 0.032–0.041), CFI = 0.969, TLI = 0.966 and SRMR = 0.049 for boys. First, Fig. 3 shows a strong and positive correlation between emotional and instrumental teacher support. Moreover, emotional teacher support at t1 was positively related to the social classroom environment at t1 for both genders, but this path was stronger for girls than boys. Instrumental teacher support was significantly and moderately related to the social classroom environment only among boys. The R2 values show that the two types of teacher support account for a greater proportion of the variance in the social classroom environment variable among boys compared to girls.

Fig. 3
figure 3

Structural model of relations between the latent constructs and squared multiple correlations in Model 3, for girls (significant paths and R2 values with box) and boys (significant paths and R2 values without box)

The social classroom environment at t1 was furthermore strongly and negatively related to loneliness at t1, and this association was stronger for girls than boys. There was moreover an indirect and significant relation between instrumental teacher support and loneliness at t1 for boys (β = −0.186, p < 0.001), but not for girls. The indirect relations between emotional teacher support and loneliness were significant for both genders, and stronger for girls (β = −0.224, p < 0.001) than boys (β = −0.119, p < 0.01). The relations between teacher support and loneliness at t1 were mediated by the social classroom environment at t1. Figure 3 shows that a higher proportion of the variance in the loneliness variable at t1 was explained among girls compared to boys. Results moreover indicated a significant and strong relation between the social classroom environment at t1 and t2, and this path was somewhat stronger for girls than boys. The proportion of explained variance in the social classroom environment variable at t2 was also higher for girls than boys. There was furthermore a significant relation between loneliness at t1 and t2 for both genders, and this path was stronger for girls than boys. In addition, the results showed that the social classroom environment at t1 was indirectly linked to loneliness at t2 through both loneliness at t1 (β = −0.288, p < 0.001 for girls and −0.143, p < 0.001 for boys) and the social classroom environment at t1 (β = −0.364, p < 0.001 for both genders). The social classroom environment at t2 was moreover significantly and negatively related to loneliness at t2, and this path was somewhat stronger for boys than girls. Also, a greater proportion of the variance in the loneliness variable at t2 was accounted for among girls compared to boys. Finally, there were no significant direct or indirect relations between teacher support at t1 and loneliness at t2.

5 Discussion

This study has investigated the associations between first year upper secondary school students’ perceptions of teacher support, the social classroom environment and school loneliness, and how gender might moderate these relationships. First, and in accordance with hypothesis 1a), there was a positive relation between both instrumental and emotional teacher support and the social classroom environment measured at t1. By contrast, the paths from emotional and instrumental teacher support to the social classroom environment at t2 were not significant. Thus, teacher support seems to be of importance to students’ experiences of the social environment in the class, but this applies only to variables measured at the same time point. A possible explanation for the lack of significant relations between these variables across time, could be that students’ perceptions of teacher support and the social classroom environment are transient and situational experiences. Thus, the teacher support that the students experience "here and now" seems to be of greatest importance to their instant perceptions of the social classroom environment.

Girls moreover reported significantly lower levels of emotional and instrumental teacher support compared to boys, and the SEM model suggested that the two types of support had different importance to girls’ and boys’ perceptions of the social classroom environment. While for boys, instrumental teacher support was moderately related to the social classroom environment at t1, this path was not significant for girls. The relation between emotional teacher support and the social classroom environment was in turn significant for both genders, but the path was somewhat stronger for girls than boys. These results suggest that the two types of teacher support contribute differently to girls’ and boys’ experiences of the social classroom environment. While girls in this study seem to rely mainly on their perceptions of the teachers as warm and friendly, boys seem to rely more strongly on the perceived practical and formal support provided by their teachers, in addition to emotional support. Of note is also that teacher support explained a greater proportion of the variance in the social classroom environment variable among boys compared to girls. These results suggest that factors that have not been included in this study, and other than teacher support, explain the variation in girls’ scores on this variable. Future research should explore reasons for these gender differences in the relations between teacher support and the social classroom environment.

Second, and contrary to hypothesis 1b, instrumental and emotional teacher support were not directly associated with student loneliness, neither at t1 or t2. As mentioned, loneliness is a subjective and internal experience, and not the same as social isolation which might perhaps be more easily observed (e.g. Perlman and Peplau 1981, 1982). Teachers may therefore find it difficult to recognize loneliness in their students. This can in turn make it challenging for them to take concrete actions against it, for instance through providing increased social support. This lack of direct relations between teacher support and loneliness is therefore not that surprising. Although teacher support was not directly associated with student loneliness, the results showed that instrumental support was indirectly and inversely related to loneliness through the social classroom environment. These indirect associations suggest that although the teacher may not directly influence students’ feelings of loneliness at school, they can contribute to reducing it by facilitating a positive social environment in the classroom.

As could be expected, the results furthermore showed that the two types of teacher support were of different indirect importance to girls’ and boys’ loneliness experiences. First, the indirect path from instrumental teacher support to loneliness through the social classroom environment was only significant for boys. Moreover, while emotional support was indirectly and negatively associated with loneliness through the social classroom environment for both genders, this path was stronger for girls than boys. Specifically, these results indicate that both instrumental and emotional teacher support might contribute to improving boys’ perceptions of the social classroom environment, which in turn might help reduce their feelings of loneliness. For the female students, however, only emotional teacher support seems to be of importance to their perceptions of the social classroom environment, and further to their loneliness experiences. This lack of significance from instrumental support to girls' experiences of the social classroom environment and loneliness is an interesting finding that should be explored further in upcoming studies.

Next, although teacher support was significantly and indirectly related to students’ perceptions of loneliness through the social classroom environment, the strongest contributing factor to explaining students’ school loneliness was their perceptions of the social environment in the class. These findings are in keeping with hypothesis 2 and show a clear tendency that the students who have the most positive perceptions of the social classroom environment to a lesser extent experience loneliness at school. Although the importance of peer relationships to student loneliness has been widely documented in the previous literature, the results from the present study extend earlier research by showing that not only the direct relations between peers, but also the general social environment in the class seems to contribute strongly to students’ feelings of school loneliness.

The current study moreover found stronger path coefficients between the social classroom environment and loneliness than those reported in earlier studies (Cava et al. 2010, 2007; Pretty et al. 1994). One explanation for this may be differences in the operationalization of the class environment variables. Another reasonable assumption could be that the previous studies had measured students’ sense of global loneliness, whereas this study has explored loneliness specifically within the school context. It is not unexpected to find stronger relationships between variables that measure phenomena within the same context (school), as was done in the present study. The strong associations between students’ perceptions of the social classroom environment and their sense of loneliness at school moreover indicate that these are inverse, but substantially closely related phenomena.

Next, while the path between the social classroom environment and loneliness was stronger for girls at t1, the path between these variables at t2 was somewhat stronger for boys. Of note is that the indirect effects from the social classroom environment at t1 to loneliness at t2 through loneliness at t1 was stronger for girls. These results may therefore indicate that girls’ previous loneliness experiences are more important to their continued feelings of loneliness, than is the case for boys. Moreover, a larger proportion of the variance in the loneliness variables was accounted for among girls compared to boys. These findings suggest that the variation in boys’ loneliness experiences to a greater extent is explained by factors others than those included in the present study.

5.1 Limitations and Future Research

This study has some limitations. First, it has measured students’ perceptions of teacher support, and this does not necessarily reflect the degree of the objective or “true” support provided by the teachers. Next, although the SEM model was based on a theoretical model that specified one-directional paths between the constructs, this does not imply that causal conclusions can be drawn. Moreover, future research should include additional classroom factors that might contribute to explaining further the variation in boys’ loneliness experiences. Finally, more research is needed to explore these relationships at other grade levels.

6 Conclusion

Youth spend a great amount of time with peers and teachers in the school context, and the results from this study strongly indicate that a secure social environment is favourable to students’ psychosocial functioning. One practical implication of the research findings is that teachers ought to focus their attention on classroom practices that can facilitate a positive social environment in the class. In Norway, various state-funded school programmes aimed at improving the social climate in the school have been implemented at the upper secondary school level in recent years, such as VIP-Makkerskap [VIP Partnership]. This testifies to a growing recognition of the significance that a healthy social environment can have for students' academic and socioemotional functioning. The findings from the present study support this assumption and highlight the importance of creating and maintaining positive social relationships and a healthy social environment in school. Importantly, the study results also imply that boys and girls may benefit differently from different types of teacher support. If the assumption holds true, this is something that teachers need to become aware of in order to provide targeted social support to their students.