With the growing prevalence of machine learning in domains such as image classification and medical diagnosis, model interpretability is essential to ensure trust and transparency. Counterfactual explanation method is an instance-based explainable machine learning technique that creates alternative outcomes by minimally altering an input. Counterfactual explanations provide a post-hoc, model-agnostic way to improve interpretability by giving actionable insights into a model’s decisions. However, many existing counterfactual explanation methods focus on binary classification, which makes extending them to multi-class problems challenging. Key challenges include handling interactions among multiple decision boundaries and generating plausible, semantically meaningful modification paths that respect the data manifold, thereby ensuring a counterfactual targeted at one class does not inadvertently cross into a third class. To address these issues, we propose MCDA (Multi-class Counterfactual explanations via Direction and Aggregation loss), a method for generating multi-class counterfactual explanations. MCDA augments the generation objective with two new loss items: a direction loss that steers generated explanations toward the desired target class in feature space, and an aggregation loss that encourages compact, coherent changes that remain close to the target-class manifold while discouraging crossing into regions associated with other classes. We provide theoretical guarantees for the proposed loss function and use an efficient gradient-based optimization scheme to accelerate convergence. Empirical validation on real-world datasets demonstrates that MCDA outperforms state-of-the-art competing algorithms across five evaluation metrics for multi-class counterfactual generation. Case studies on a medical dataset illustrate that MCDA produces interpretable, actionable counterfactuals with potential clinical relevance.