Take the free abelian group , whose rank of a group is two, and its finite-index subgroup . The subgroup has index two and is again isomorphic to , so its rank is two. The Nielsen–Schreier formula would instead give . Hence
is a counterexample.
Let be the rank of a group, let be a generating set of size , and suppose . Choose a Schreier transversal adapted to a spanning tree in the Schreier coset graph. By Schreier's lemma, is generated by the elements
There are candidates. The oriented edges in the spanning tree give trivial candidates, leaving at most . This proves the Schreier index-rank inequality