Halacha 1
How is a mezuzah written? The two portions, Shema and V'hayah im shamo'a, are written on one piece of parchment in a single column. Approximately half a fingernail of space should be left above and below [the writing].
Should one write [a mezuzah] in two or three columns, it is acceptable, as long as it not written tail-shaped, in a circle, or tent-shaped. If it was written using any of these forms, it is not acceptable.
If it was not written in order - e.g., one wrote the passage [V'hayah im shamo'a] before the passage [Shema] - it is not acceptable. If one writes a mezuzah on two different parchments, it is not acceptable even if they were sewn together [later].
A mezuzah should not be made from a Torah scroll or tefillin that have become worn, nor should a mezuzah be written on the empty parchment from a Torah scroll, because one should not lower an article from a higher level of holiness to a lesser one.
Halacha 2
It is a mitzvah to leave a space between the passage Shema and the passage V'hayah im shamo'a, as if it were s'tumah. If space were left as if it were p'tuchah, it is acceptable, since these passages do not follow each other in the Torah.
One must take care regarding the crowns [on the letters] in a mezuzah. The following letters should have crowns.
Halacha 3
In the first passage, there are seven letters which should each have three zeiynin upon it. They are: The shin and the ayin of [the word] Shema, the nun of [the word] nafsh'cha, the two zeiynin of [the word] mezuzot, and the two tettin of the word totafot.
In the second passage, there are six letters each of which should have three zeiynin upon it. They are: The gimmel of [the word] d'ganecha, the two zeiynin of [the word] mezuzot, the two tettin of the word totafot, and the tzadi of [the word] ha'aretz.
If no crowns were made, or one increased or decreased their number, [the mezuzah] is not invalidated. If the mezuzah was not written on ruled [parchment], if [the scribe] was not exact with regard to the use of the full or short form [of the words, or if [the scribe] added even a single letter inside [the mezuzah], it is invalidated.
Halacha 4
It is a common custom to write [God's name,] Shaddai, on the outside of a mezuzah opposite the empty space left between the two passages. There is no difficulty in this, since [the addition is made] outside.
Those, however, who write the names of angels, other sacred names, verses, or forms, on the inside [of a mezuzah] are among those who do not have a portion in the world to come. Not only do these fools nullify the mitzvah, but furthermore, they make from a great mitzvah [which reflects] the unity of the name of the Holy One, blessed be He, the love of Him, and the service of Him, a talisman for their own benefit. They, in their foolish conception, think that this will help them regarding the vanities of the world.
Halacha 5
It is a mitzvah to write al ha'aretz on the final line [of a mezuzah], either at the beginning or in the middle of the line. It has become universally accepted custom for scribes to write [mezuzot] with 22 lines, with al ha'aretz at the beginning of the final line.
These are the letters that appear at the beginning of each line in order: shema, י-ה-ו-ה, hadevarim, l'vanecha, uv'shochbicha, beyn, v'hayah, m'tzaveh, b'chol, yoreh, esev, pen, v'hishtachavitem, hashamayim, va'avad'tem, v'samtem, otam, otam, baderech, uvish'arecha, asher, al ha'aretz13.
Halacha 6
When [a mezuzah] is folded, it should be rolled from the end of the line to its beginning so that when a reader rolls it open, he will be able to read from the beginning of the line to the end.
After rolling it, one should place it in a tube made of reed, wood, or any other substance and affix it to the doorpost of one's entrance with a nail. Alternatively, one should hollow out the doorpost and place the mezuzah within.
Halacha 7
Before affixing it on the doorpost of the entrance, one should recite the blessing: "Blessed are You, God, our Lord, King of the universe, who has sanctified us with His commandments and commanded us to affix a mezuzah."
One should not recite a blessing when writing [the mezuzah], because affixing it fulfills the mitzvah.
Halacha 8
If one suspends [a mezuzah] within a pole, it is unacceptable, because it has not been affixed. If one positions it behind the door, it is as if one has done nothing.
Should one hollow out the doorpost and place a mezuzah within it horizontally, as the rods were put through the rings [in the Sanctuary], it is unacceptable. Should one place it deeper than a handbreadth [within the doorpost], it is unacceptable.
Should one cut a reed in half and insert a mezuzah within, and afterwards connect this reed with other reeds, making a doorpost for the house from them, it is unacceptable, because the affixing of the mezuzah preceded the making of the doorpost of the entrance.
Halacha 9
A mezuzah [placed] on private [property] should be checked twice in seven years, and a mezuzah [placed] on public [property] should be checked twice in fifty years, lest a letter have become torn or faded. Since it is affixed within a wall, there is the possibility that it will decay.
Halacha 10
Everyone is obligated [to fulfill the mitzvah of] mezuzah, even women and slaves. Minors should be educated to affix a mezuzah to [the doors of] their homes.
A person who rents a dwelling in the diaspora, and a person who rents a room in a hotel in Eretz Yisrael, are exempt from the obligation [to affix a] mezuzah for thirty days. One who rents a house in Eretz Yisrael, however, is obligated [to affix a] mezuzah immediately.
Halacha 11
When a person rents a dwelling to a colleague, the tenant is obligated to obtain a mezuzah and affix it. [This applies] even if he would pay to have it affixed. [The rationale is] that a mezuzah is an obligation incumbent on the person dwelling [in the house], and is not incumbent on the house.
When [the tenant] leaves [the dwelling, however], he should not take it with him unless the dwelling belongs to a gentile. In that instance, he should remove it when he leaves.
How is a mezuzah written? - Sefer HaMitzvot (Positive Commandment 15) and Sefer HaChinuch (Mitzvah 423) consider the mitzvah of mezuzah to be one of the 613 mitzvot of the Torah.
The two portions, Shema and V'hayah im shamo'a, are written on one piece of parchment in a single column. - The Jerusalem Talmud (Megillah 1:9) states that unlike a Torah scroll or tefillin, a mezuzah should be written in a single column.
Approximately half a fingernail of space - approximately one centimeter
should be left above and below [the writing]. - Also, a small amount of parchment should be left on the right side for the mezuzah to be rolled closed (Shulchan Aruch, Yoreh De'ah 288:1).
Should one write [a mezuzah] in two or three columns, it is acceptable - although this is not the desired form
as long as it not written tail-shaped - i.e., wider above than below, the top lines being longer than the bottom ones
in a circle - This word is not found in our text of Menachot 31b, the source for this halachah.
or tent-shaped - i.e., wider below than above, the bottom lines being longer than the top ones.
If it was written using any of these forms, it is not acceptable. - Menachot 31b.
If it was not written in order - e.g., one wrote the passage [V'hayah im shamo'a] before the passage [Shema] - it is not acceptable. - Furthermore, if even one letter from a mezuzah was not written in order, the mezuzah is unacceptable (Shulchan Aruch, Yoreh De'ah 288:3).
The Ginat Veradim suggests that the Rambam requires only that the order of the two passages not be reversed, but is not concerned with the order of the letters within the passages themselves. This perspective, however, is not accepted by other authorities, who explain that surely, the Rambam requires order within the passages. He gave the above example only because he felt that it was more important to emphasize that even if the passages themselves were written in order, if their order was reversed, the mezuzah is not acceptable.
If one writes a mezuzah on two different parchments, it is not acceptable even if they were sewn together [later]. - In his Responsa (213), Rabbi Akiva Eiger writes that if the parchments were sewn together before the passages were written upon them, the mezuzah is acceptable.
A mezuzah should not be made from a Torah scroll - i.e., one may not cut the passage, Shema, from a worn Torah scroll and write the passage, V'hayah im shamo'a, on the empty space below it. One may not cut both passages from the Torah scroll since, as explained above, a mezuzah may not be written on two different parchments (Siftei Cohen, Yoreh De'ah 290:1).
or tefillin that have become worn - Though it is possible to cut the two passages from the arm tefillin, it is forbidden to do so.
nor should a mezuzah be written on the empty parchment from a Torah scroll - the empty parchment left as a border above and on the sides of the Torah scroll. The Or Sameach notes thatShabbat 116a questions whether or not these empty portions of parchment have become sanctified with the holiness of a Torah scroll, and does not resolve the issue. Because of the doubt involved, the Rambam rules that in situations where the question of their holiness is raised, one should always take the more stringent perspective. Therefore, in Hilchot Shabbat 23:27, the Rambam rules that they should not be saved from a fire on the Sabbath if the violation of even a Rabbinic transgression is involved (accepting the possibility that they have not become consecrated). In this halachah, this approach requires accepting the possibility that they have been consecrated.
because one should not lower an article from a higher level of holiness - As explained in Chapter 10, Halachot 2-5 (see also Hilchot Tefillah 11:14), the holiness of a Torah scroll surpasses that of all other articles.
to a lesser one. - Our Sages have established the principle, "One may ascend to a higher level of holiness, but may not descend to a lower one."