Question: how to calculate the variance explained?
Answer: In ANOVA, explained variance is calculated with the “eta-squared (η2)” ratio Sum of Squares(SS)between to SStotal; It's the proportion of variances for between group differences. R2 in regression has a similar interpretation: what proportion of variance in Y can be explained by X (Warner, 2013).