The following language in Title 23 (Domestic Relations) addresses alimony in Pennsylvania:§ 3701. Alimony.
(a) General rule.--Where a divorce decree has been entered, the court may allow alimony, as it deems reasonable, to either party only if it finds that alimony is necessary.
(b) Factors relevant.--In determining whether alimony is necessary and in determining the nature, amount, duration and manner of payment of alimony, the court shall consider all relevant factors, including:
(c) Duration.--The court in ordering alimony shall determine the duration of the order, which may be for a definite or an indefinite period of time which is reasonable under the circumstances.
(d) Statement of reasons.--In an order made under this section, the court shall set forth the reason for its denial or award of alimony and the amount thereof.
(e) Modification and termination.--An order entered pursuant to this section is subject to further order of the court upon changed circumstances of either party of a substantial and continuing nature whereupon the order may be modified, suspended, terminated or reinstituted or a new order made. Any further order shall apply only to payments accruing subsequent to the petition for the requested relief. Remarriage of the party receiving alimony shall terminate the award of alimony.
(f) Status of agreement to pay alimony.--Whenever the court approves an agreement for the payment of alimony voluntarily entered into between the parties, the agreement shall constitute the order of the court and may be enforced as provided in section 3703 (relating to enforcement of arrearages).