Appellant Leticia Schwartz, the ex-wife of appellee Stephen Schwartz, appeals the trial court’s determination that under the terms of the parties’ divorce settlement agreement, Stephen was entitled to retain funds he received for the overpayment of state and federal income taxes. Applying the standard rules of contract construction, we conclude that the settlement agreement at issue contemplated that Stephen would shoulder the entire burden of paying income taxes and also would receive any amount refunded for the overpayment of such taxes. Therefore, we affirm.
The parties were divorced by a final decree entered in 1998. The decree contained a settlement agreement that purported to resolve all issues relative to the divorce, including the division of property and the responsibility for indebtedness. The agreement made the following provisions with regard to the payment of income taxes owed for 1997:
The [parties] shall file joint tax returns for 1997. [Stephen] shall be responsible for all state and federal taxes for the *108year 1997. . . . The parties agree that none of the income of [Stephen] payable from [his anesthesiology practice] . . . shall be income to [Leticia].
It is undisputed that in 1997 Stephen earned monthly income of $40,000, while Leticia had no separate income.
After paying state and federal income taxes for 1997, Stephen received a refund for the overpayment of taxes in the amount of $27,046, which he refused to divide with Leticia. He sought declaratory relief that he alone was entitled to the overpayment refund, which the trial court granted.
1. Settlement agreements in divorce cases must be construed in the same manner and under the same rules as all other contractual agreements.1 It is axiomatic that contracts must be construed in their entirety and in a manner that permits all of the terms contained therein to be consistent with one another.2 Of course, the terms and phrases contained in a contract must be given their ordinary meaning.3 As always, the paramount rule in construing a contract is to ascertain the intention of the parties.4
Applying these hornbook principles of contract construction to the settlement agreement in this case, we conclude that the trial court did not err in holding that Stephen was entitled to retain the funds he received for the overpayment of state and federal income taxes for 1997. The agreement plainly states that Stephen would be responsible for all state and federal income taxes for 1997 and that none of Stephen’s income earned in 1997 would be considered income to Leticia for tax purposes. Thus, the parties intended that Stephen assume all liability for taxes owed in 1997, and that none of his earned income for that year would be treated as income to Leticia. It is clear from the agreement that the parties also intended for Leticia to avoid any responsibility for income tax liability in 1997.
In accordance with the terms of the agreement, the parties filed a joint tax return and Stephen paid all state and federal income taxes for 1997. As do many taxpayers, Stephen paid his income taxes through periodic income withholding, and actually overpaid the amount of income tax owed for 1997. The amount of this overpayment was returned to him by the state and federal tax authorities.
Leticia claims that the settlement agreement is silent as to how the parties would divide income tax overpayment refunds,5 and that *109she is entitled to half of the tax overpayment returned to Stephen. As explained above, however, the parties intended for Stephen to assume all responsibility for 1997’s income taxes. Leticia must concede that the parties intended for Stephen to be responsible for paying any taxes that might still have been owed after periodic withholding in 1997. It follows that if, after withholding, taxes were overpaid, then Stephen was also entitled to receive the amount of any tax refund. In other words, because Stephen carried the entire burden of income taxes for 1997, and because Leticia avoided all responsibility for those taxes, Stephen was entitled to receive any refunds due for tax overpayment.
In essence, Leticia argues that if taxes were still owed after withholding, then Stephen would have to pay them, but if a refund was in order, he should have to divide it with her. Nothing in the settlement agreement indicates the parties intended such divergent results to turn upon whether there was a tax deficiency or an overpayment refund. To construe the agreement as Leticia urges would clearly result in a windfall to her that was not contemplated by the parties. As explained above, the parties intended that Leticia have nothing to do with the payment of income taxes for 1997, and that intention must be fulfilled regardless of whether there was an income tax refund or an income tax deficiency.6 Accordingly, we agree with the trial court that Stephen was entitled to retain the income tax refund paid to him for 1997.
2. Furthermore, it is axiomatic that whenever possible, a contract should not be construed in a manner that renders any portion of it meaningless.7 As explained above, the settlement agreement in this case stated that none of Stephen’s 1997 income from his anesthesiology practice would be income to Leticia. The tax overpayment refund at issue in this case resulted from excessive withholdings taken directly from Stephen’s income generated by his anesthesiology practice. In other words, the overpayment refund is nothing more than a portion of Stephen’s income from his practice that was improperly paid to the government to satisfy tax obligations. Under *110the plain terms of the settlement agreement, those funds cannot be Leticia’s income, and to rule otherwise would render a portion of the settlement agreement meaningless in derogation of the authorities cited above.8
3. Contrary to Leticia’s argument, the trial court did not err by ruling on Stephen’s motion for declaratory judgment without holding a trial, as both parties asked the court to rule on Stephen’s motion based upon the evidence then before the court.
Judgment affirmed.
All the Justices concur, except Benham, Hunstein and Hines, JJ, who dissent.Cousins v. Cousins, 253 Ga. 30, 31 (315 SE2d 420) (1984).
OCGA § 13-2-2 (4).
OCGA § 13-2-2 (2).
McKie v. McKie, 213 Ga. 582 (100 SE2d 580) (1957).
It appears from its order that the trial court also concluded that the agreement was silent as to the disposition of income tax overpayment refunds. Our contrary conclusion in *109this opinion does not require us to reverse the trial court, however, as this Court will affirm a judgment, so long as it is right for any reason. Shadix v. Carroll County, 274 Ga. 560, 565 (554 SE2d 465) (2001).
In this regard, it is also worth noting that Stephen could have opted not to withhold income taxes periodically, and could have simply waited until the end of 1997 to calculate the taxes he owed and then paid that amount. Alternatively, Stephen might have periodically withheld a lesser amount in 1997, in which case he might have received a negligible repayment, or no repayment at all, from state and federal tax authorities. In either of these instances, Stephen would have upheld his agreement to pay 1997’s income taxes, and Leticia would have no grounds to assert her current claim.
OCGA § 13-2-2 (4); Board of Regents v. A.B. & E„ Inc., 182 Ga. App. 671, 675 (357 SE2d 100) (1987).
Having reviewed the record, we agree with the trial court that no evidence suggests that Stephen fraudulently concealed the likelihood of receiving tax refunds. We caution, however, that our ruling today does not apply to instances where a party to divorce proceedings has wrongly concealed information concerning tax obligations or anticipated tax refunds.