---
title: "Changing Ring"
canonical: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/ModulesOverMultivariateRings/change-ring.html"
source: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/ModulesOverMultivariateRings/change-ring.md"
part: "Commutative Algebra"
chapter: "Modules over Multivariate Rings"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Commutative Algebra", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/index-commutative-algebra.md"}
  - {"title": "Modules over Multivariate Rings", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/ModulesOverMultivariateRings/index-modules-over-multivariate-rings.md"}
prev: {"title": "Module Operations", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/ModulesOverMultivariateRings/operations.md"}
next: {"title": "Hilbert Series", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/ModulesOverMultivariateRings/hilbert.md"}
intrinsics:
  - {"name": "ChangeRing", "signature": "ChangeRing(M, S): RngMPol, Rng -> RngMPol"}
---

# Changing Ring

The `ChangeRing` function enables the changing of the polynomial ring over which a module is defined.

<a id="function-pmod-changering"></a>
## `ChangeRing(M, S): RngMPol, Rng -> RngMPol`

Given an $R$-module $M$, where $R$ is a polynomial ring, and another polynomial ring $S$, construct the $S$-module $N$ obtained by coercing the coefficients of the elements of the basis and relations of $M$ into $S$. It is necessary that all elements of the old coefficient ring $R$ can be automatically coerced into the new coefficient ring $S$. Note that $S$ itself must be polynomial ring having the same rank as $R$, so $S$ does not specify the new ring for the underlying coefficients (one can use [`ChangeRing`](https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/GrobnerBases/change-ring.md#function-gb-changering) for polynomial rings to do that first).
