The current study investigates whether there are statistically independent age-related influences on the canine cognitive structure and how individual factors moderate cognitive aging on both cross-sectional and longitudinal samples. A battery of seven tasks was administered to 129 pet dogs, on which exploratory and confirmatory factor analyses were employed to unveil the correlational structure underlying individual differences in cognitive performance. The best-fitting model featured a hierarchical structure with two first-order cognitive domains (individual problem solving, learning) and a second-order common factor. These higher order factors exhibited consistency over a period of at least 2.5 years. External validation linked the common factor positively to discrimination and reversal learning performance, exploration, neophilia, activity/excitability, and training level while negatively to cognitive dysfunction symptoms, suggesting that it is a good candidate for a general cognitive factor (canine g). Structural equation models identified three distinct age-related influences, operating on associative learning, on memory, and on canine g. Health status moderated the negative age-canine g relationship, with a stronger association observed in dogs with poorer health status, and no relationship for dogs in good health. On a longitudinal sample (N = 99), we showed that the direction and magnitude of change in canine g over up to 3 years is affected by various interactions between the dogs’ age, communication score, baseline performance, and time elapsed since the baseline measurement. These findings underscore the presence of a general cognitive factor in dogs and reveal intriguing parallels between human and canine aging, affirming the translational value of dogs in cognition and aging research.