Canonical: https://knowlpedia.com/algebra-modules/rank-module/

# Rank of a free module

The cardinality of a basis of a free module.

Let \(R\) be a nonzero commutative ring and \(F\) a [free \(R\)-module](https://knowlpedia.com/algebra-modules/free-module/). The **rank** of \(F\) is the [cardinality](https://knowlpedia.com/shared-foundations/cardinality/) of a [basis](https://knowlpedia.com/algebra-modules/basis-module/), denoted \(\operatorname{rank}(F)\). This is well-defined because any two bases of a free module over a nonzero commutative ring have the same cardinality.

When the rank is finite, it plays the role of [dimension](https://knowlpedia.com/convex-analysis/basis-hamel-basis-and-dimension/), but over a general ring one typically speaks of rank only for free (or locally free) modules.

## Examples

- \(\operatorname{rank}(R^n)=n\).
- The zero module has rank \(0\) (its basis is the empty set).
- If \(F\cong \bigoplus_{i\in I} R\), then \(\operatorname{rank}(F)=|I|\).
