The impact factor is typically calculated annually by dividing the number of citations in a given year by the total number of articles published in the previous two years. For example, if Journal X published 50 articles in 2021 and 2022, and those articles received 200 citations in 2023, the impact factor for 2023 would be 4 (200 citations / 50 articles).