Starting Work Before Shabbat That Continues Automatically
These sources examine whether one may begin a melacha (creative work) before Shabbat if the work will continue and complete by itself during Shabbat. The sources present the foundational permissibility of such pre-Shabbat initiated processes, alongside rabbinic restrictions and practical distinctions.
Opens as a working sheet — explore, annotate, and export.
What the sources say
The foundational principle permitting a process that runs through Shabbat on its own is already established in the Gemara: Shabbat 17b records the machlokes between Beit Shammai and Beit Hillel — Beit Shammai requiring that soaking and similar processes complete before Shabbat, while Beit Hillel permits initiating them even if they continue into Shabbat — and Shabbat 18a confirms that both schools agree one may load the olive press on Friday so the oil continues to press on Shabbat.
This ruling follows Beit Hillel: the Rambam (Hilchot Shabbat 3:1–2) states explicitly that it is permissible to begin a forbidden labor on Friday even though the labor is completed on its own accord on Shabbat, because the prohibition applies only to what one does on Shabbat itself, and one may even benefit from what was completed on Shabbat on its own.
The Shulchan Arukh (Orach Chayim 252:1–6) codifies the same rule — it is permitted to start a task on Friday near darkness even though it can only be finished on Shabbat — and the Mishnah Berurah (252:1) adds that even when the action that continues on Shabbat would constitute a Torah-level prohibition if performed on Shabbat itself, it is nonetheless permitted because one initiated it at a permitted time before Shabbat.
The Arukh HaShulchan (Orach Chayim 252) clarifies the underlying logic: the Torah treats the beginning of the action as determinative, so when one begins before Shabbat, the completion that occurs on its own is legally attributed to that pre-Shabbat initiation — but this only holds when no further human involvement takes place on Shabbat itself.
·
Source 1 · Chazal
Verified
Mishnah Shabbat 1:5
משנה שבת א׳:ה׳
Mishnah Shabbat 1:5
The Mishnah addresses cases of work that may continue from before Shabbat into Shabbat, including examples of grinding and tanning-type processes, forming the classic basis for this area of law.
This sugya is part of the foundational Talmudic discussion of work begun before Shabbat and what may continue on Shabbat, especially in relation to processes that proceed on their own.
MISHNA: In this mishna there is a fundamental dispute between Beit Hillel and Beit Shammai: Must one begin refraining from actions prohibited on Shabbat on Shabbat eve? Or, may one initiate an action prior to Shabbat, even if he knows that it will continue on its own on Shabbat itself? These are the details of that dispute: Beit Shammai say: One may only soak dry ink in water and dry plants, which produce dyes, in water and vetch for animal food to soften them in water on Shabbat eve, adjacent to Shabbat, if there is clearly sufficient time for them to soak for their designated purpose while it is still day, before Shabbat begins, and their continued soaking on Shabbat will have no effect. And Beit Hillel permit doing so. Beit Shammai say: One may only place bundles of combed flax inside the oven on Shabbat eve if there is sufficient time so that they will be heated while it is still day. And one may only place wool into the dyer’s kettle if there is sufficient time for the wool to absorb the dye while it is still day. And Beit Hillel permit doing so. Beit Shammai say: One may spread traps for an animal and birds and fish only if there is sufficient time remaining in the day for them to be trapped in them while it is still day, and Beit Hillel permit doing so even if there is not sufficient time remaining in the day. Beit Shammai say: One may only sell an item to a gentile on Shabbat eve, and one may only load a burden on his donkey with him, and one may only lift a burden on him if there remains sufficient time for the gentile to arrive to a near place prior to Shabbat, and the Jew will play no role in the performance of a prohibited labor by the gentile on Shabbat. And Beit Hillel permit doing so. Beit Shammai say: One may not give skins to a gentile tanner, nor clothes to a gentile launderer, unless there is sufficient time for work on them to be completed while it is still day, before Shabbat begins. And in all of them Beit Hillel permit doing so with
The Gemara discusses extending work into Shabbat when it was initiated beforehand, including the classic cases that later codes use as precedent for automated or self-running processes.
the sun, i.e., as long as the sun is shining on Friday. Rabban Shimon ben Gamliel said: The ancestral house of my father, the dynasty of Nesi’im from the house of Hillel, was accustomed to give its white clothes to a gentile launderer no fewer than three days before Shabbat. And, however, these, Beit Shammai, and those, Beit Hillel, agree that, ab initio, one may load the beam of the olive press on the olives on Shabbat eve while it is still day, so that the oil will continue to be squeezed out of the olives on Shabbat. So too, one may load the circular wine press to accelerate the process of producing wine from the grapes. The Sages taught in a Tosefta: One may open a canal that passes adjacent to a garden on Shabbat eve at nightfall, so that water will flow into a garden and the garden continuously fills with water all day long on Shabbat. Similarly, one may place incense, perfumed herbs placed on coals to produce a fragrance, on coals beneath the clothes on Shabbat eve and the clothes may be continuously perfumed all day long. And, similarly, one may place sulfur beneath the silver vessels on Shabbat eve at nightfall for the purpose of coloring the vessels, and they may be continuously exposed to sulfur all day long. And one may place an eye salve [kilor] on the eye and a bandage [ispelanit] smeared with cream on a wound on Shabbat eve at nightfall, and the wound may continuously heal all day long on Shabbat. However, one may not place wheat kernels into the water mill unless he does so in a way so that they will be ground while it is still day on Friday and not on Shabbat.
One may begin a melacha before Shabbat even if it completes by itself during Shabbat, since the prohibition against melacha applies only to work performed on Shabbat itself.
The Tur presents the halakhic framework behind starting processes before Shabbat that will operate on Shabbat. It is a key antecedent to the Shulchan Arukh discussion in this siman.
מותר להתחיל במלאכה בע"ש סמוך לחשיכה אע"פ שאינו יכול לגומרה מבע"י והיא נגמרת מאיליה בשבת כגון לשרות דיו וסמנין במים והן נשרים כל השבת ולתת אונין של פשתן לתנור כדי שיתלבנו ולתת צמר לתוך היורה שאינה על גבי האש וטוחה בטיט אבל אם היתה על האש אסור שמא יחתה בגחלים או אפי' אינה על האש אם היא פתוחה אסור שמא יגיס בה בכף והמגיס בקדרה אפי' אינה על האש חייב משום מבשל ומותר לפרוס מצודות חיה ועוף ודגים והן ניצודים בשבת ומותר למכור לעכו"ם ולהטעינו סמוך לחשיכה רק שיצא מביתו מבעוד יום ומותר ליתן בגדיו לכובס עכו"ם ועורות לעבדן סמוך לחשיכה אם קצץ לו דמים אבל אם לא קצץ אסור אא"כ ביום ד' או ביום ה' ומותר לפתוח מים לגנה והם נמשכין והולכין בכל השבת ולהניח קילור עבה על העין אע"פ שאסור בשבת משום ממרח אבל קילור רך וצלול אפי' בשבת מותר להניחה ע"ג העין ומותר לתת מוגמר תחת הכלים והם מתגמרים מאליהן כל השבת ולתת שעורין בגיגית לשרותן ולתת גחלים בכלי והן דולקין והולכין כל השבת אע"פ שמשתמש בכלי דקי"ל שביתת כלים לאו דאורייתא ואפי' אם הכלי עושה מעשה בשבת וטוענין בקורות בית הבד ובית הגת מבע"י על זיתים וענבים שנתרסקו מבע"י וטוען עליהם להוציא מהן משקין והשמן והיין היוצא מהן מותר וכן בוסר ומלילות שנתרסקו מבע"י וטען עליהם מבע"י להוציא מהם משקין מותרין המשקין היוצאים מהם ודוקא שנידוכו היטב מע"ש ואינן מחוסרים אלא שחיקה אבל לא נידוכו היטב אלא שנתרסקו מעט אסורין המשקין היוצאין מהם אבל אסור לתת חיטין לתוך ריחיים אלא כדי שיטחנו מבעוד יום כיון דאוושא מילתא טפי איכא זילותא דשבתא:
Rambam discusses activities set in motion before Shabbat and objects or mechanisms that continue on Shabbat, a major source for the broader rule that prepared processes may continue into Shabbat in some circumstances.
It is permissible to begin the performance of a [forbidden] labor on Friday, even though the labor is completed on its own accord on the Sabbath itself, for the prohibition against work applies only on the Sabbath itself. Moreover, when a task is carried out on its own accord on the Sabbath, we are permitted to derive benefit from what was completed on the Sabbath. What is implied? We may open an irrigation channel to a garden on Friday, causing it to continue to fill throughout [the Sabbath] day. We may place [burning] incense under garments, causing them to continue to be made fragrant throughout the entire Sabbath. We may apply salve to an eye or a bandage to a wound, causing them to continue to heal throughout the Sabbath. We may mix ink with herbs before night and let the mixture soak throughout the entire Sabbath. We may place wool into a vat or strands of flax into an oven so that their [color] continues to change throughout the entire Sabbath. We may lay out snares for wild beasts, birds, and fish at nightfall so that they continue being captured throughout the entire Sabbath. We may load the beams of an olive press or the round stones of a grape press at nightfall so that the liquids will continue to flow throughout the entire Sabbath. Similarly, we may light a candle or a fire [before] evening so that it continues to burn throughout the entire Sabbath.
The Mishnah Berurah explains the rules of enabling a process to continue through Shabbat, the concerns of mar'it ayin and uvdin de-chol, and when a pre-Shabbat setup is still problematic. It is the standard companion commentary on Shulchan Arukh Orach Chayim 252.
(א) לשרות דיו וכו' - ובשבת אסור משום מגבל שמערב הדיו והמים יחד וי"א דאסור משום צובע אפ"ה כיון שמתחיל בזמן המותר בע"ש וממילא נגמר הפעולה בשבת שרי וכן בכל הני דקחשיב יש בהן איסור דאורייתא כשעושה אותם בשבת אפ"ה כיון שמתחיל בע"ש שרי:
These laws discuss starting a melakhah before Shabbat and allowing it to continue on Shabbat, including cases of a mill, tanning, and other processes that run by themselves. They are the core code source for whether initiating an automated process before Shabbat is permitted.
מלאכות המותרים והאסורים להתחיל בע"ש כדי שיהיו נגמרים בשבת. ובו ז סעיפים: מותר להתחיל במלאכה בערב שבת סמוך לחשיכה אף על פי שאינו יכול לגומרה מבעוד יום והיא נגמרת מאליה בשבת כגון לשרות דיו וסממנין במים והם נשרים כל השבת ולתת אונין (פי' אגודות) של פשתן לתנור כדי שיתלבנו ולתת צמר לתוך היורה שאינה על האש והיא טוחה בטיט שאם היא על האש אסור שמא יחתה (פי' יגלה ויעיר הגחלים במחתה) ואפי' אינה על האש אם אינה טוחה בטיט אסור שמא יגיס בה בכף והמגיס בקדיר' אפי' אינה על האש חייב משום מבשל ומותר לפרוס מצודות חיה ועופות ודגים והם נצודים בשבת ומותר למכור לנכרי ולהטעינו סמוך לחשיכה ובלבד שיצא מפתח ביתו מבעוד יום: הגה ויש מתירין שיוציא עכו"ם בשבת אם ייחד לו העכו"ם מקום מבעוד יום בבית ישראל ויש להחמיר (מרדכי פ"ק דשבת) ועיין לקמן סי' שכ"ה: ומות' לפתוח מים לגנה והם נמשכים והולכים בכל השבת ולהניח קילור [סם של רפואה שנותנים על העין] עבה על העין אע"פ שאסור להניחו בשבת ולתת מוגמר תחת הכלים והם מתגמרים מאליהם כל השבת ואפי' מוגמר מונח בכלי דאין אדם מצווה על שביתת כלים ולתת שעורים בגיגית לשרותן וטוענין בקורות בית הבד והגת מבעוד יום על זיתים וענבים והשמן והיין היוצא מהן מותר [וע"ל סי' ש"כ סעיף ב'] וכן בוסר ומלילות שריסקן מבע"י מותרים המשקים היוצאים מהם ומותר לתת חטים לתוך רחיים של מים סמוך לחשיכ': הגה ולא חיישי' להשמעת קול שיאמרו רחיים של פלוני טוחנות בשבת ויש אוסרים ברחיים ובכל מקום שיש לחוש להשמעת קול (טור ותוס' והרא"ש פ"ג דשבת וסמ"ג וסה"ת והגהות מיי' פ"ז ותשובת מהרי"ו סימן ק"ל ואגור) והכי נהוג לכתחלה מיהו במקום פסידא יש להקל כמו שנתבאר לעיל ס"ס רמ"ד. ומותר להעמיד כלי משקולת שקורין זייגר מע"ש אע"פ שמשמיע קול להודיע השעות בשבת כי הכל יודעים שדרכן להעמידו מאתמול (טור אגור) ועיין לקמן סי' של"ח:
It is permitted to start an action on Friday near darkness even though the work cannot be completed on Friday and can only be finished on Shabbat. It is permitted to soak/ dissolve a ink or dye in water if it dissolves during Shabbat. It is permitted to put bundles of flax in the oven in order that they be whitened. It is permitted to put wool inside a large pot that is not on the fire, and it is covered with mud. But if the pot is on the fire it is forbidden, lest one stirs the coals. And even if it is not on the fire but it isn’t covered in mud, it is forbidden, lest he stir it with his hand. The one who stirs the pot even if it is not on the fire is liable because of cooking. It is permitted to spread out traps for animals, birds, and fish even though they will be trapped on Shabbat. It is permitted to sell to non-Jews and load it for him close to dark as long as he leaves the door of his house while it is still day. Rema: And there are those that permit it when the non-Jew leaves on Shabbat if the non-Jew designates a place on the next day in the house of a Jew. And there are those who are strict in this matter (Mordechai). See below Siman 325. It is permitted to open water to the garden and the water will continue and flow all of Shabbat. It is permitted to put קילור, thick collyrium (salve) on the eye even though it is forbidden to put it on on Shabbat. It is permitted to perfume one’s clothes when the process of perfuming is continued all of Shabbat, even if the perfume is placed in a vessel, since one is not commanded to rest his vessels. It is permitted to put barley in a tub to soak, and to load the beams of the olive press or wine press while it is still day upon the olives or the grapes, and the oil or wine that comes from them is permitted [And see Siman 320 Seif 2]. Similarly, if unripe grapes or ears are mashed while it is still day, it is permitted to drink that which comes forth from it. It is permitted to put wheat in a water mill near dark. Rema: And we do not worry to the sound of the voices of those who say 'the mill of this person is grinding on Shabbat'. There are those who forbid regarding mills and in any place that there is a worry about listening to the sound (Tur; Tosefos; Rosh; Sma"g; Hagahos Maimoni; Teshuvos Mahari"v; Agur) and this is our custom initially. However in a place of loss there are those who are lenient as as explained above at the end of Siman 244. One may place a keli of a weight called זייגר from Erev Shabbat even though he hears a voice announcing the hours of Shabbat, because everyone knows that it is their way to place it there from yesterday (Tur Agur) and see below Seif 338
The Beit Yosef gathers the sources and discusses the halakhic basis for permitting certain operations to continue into Shabbat when begun beforehand. It helps trace the codification of the rule in later authorities.
מותר להתחיל במלאכה ע"ש סמוך לחשיכה וכו' מתבאר כן מתוך הדינין שיבואו בסמוך דאיפליגו ב"ש וב"ה בפ"ק דשבת (יז:) דב"ה שרו לשרות דיו וסמנין ולתת אונין של פשתן לתנור וצמר ליורה ולפרוס מצודות ולמכור לעכו"ם ולהטעינו ולתת בגדיו לכובס עכו"ם ועורות לעבדן וב"ש אסרי וקי"ל כב"ה ואליבא דר"ע דאמר דלא בעו ב"ה כדי שיגיע לבית הסמוך לחומה אלא בכדי שיצא מפתח ביתו של ישראל מבע"י שרי ומה שהתנה בצמר ליורה שלא תהא ע"ג האש ושתהא טוחה בטיט הכי אוקמוה בגמ' (יח:):
The Alter Rebbe elaborates the laws of starting work before Shabbat that then runs on its own during Shabbat, with detailed practical distinctions. This is especially useful for modern machine-based cases.
Arukh HaShulchan analyzes the practical contours of allowing an action to continue into Shabbat after being started beforehand and discusses the surrounding concerns. It is a major later halakhic source for automated processes.
אבל אם בידיו עשה המלאכה קודם השבת והמלאכה נגמרה מאליה בשבת - מותר, (ירושלמי פרק א' הלכה ה') כגון שנותן פת לתנור מבעוד יום או בשר בקדירה לבשל, וגמר האפייה והבישול עד שיהא ראוי לאכול צריך לזה ג' שעות, ונמצא שהגמר יהיה בשבת - מכל מקום מותר, כיון שמעצמה נעשית והוא אינו עושה כלום. אמנם העניין כן הוא, דוודאי שדינן הגמר אחר ההתחלה, וכשההתחלה היתה בשבת - שדינן הגמר אחר ההתחלה, כא(י)לו עשה גם הגמר בידיו, וכשההתחלה היתה בערב שבת - שדינן גם כן הגמר אחר ההתחלה, כלומר כא(י)לו גם הגמר היתה בערב שבת, דהתורה אמרה שהתחלת עשייה בידיו - הוי כא(י)לו גמר אז כל המלאכה. ולהיפך, הזורע ביום ה', אף על פי שהקליטה תהיה בשבת - אינה כלום, דחשיב כא(י)לו גם הקליטה היתה ביום ה', דלא חייבה תורה על מה שנעשית המלאכה מאליה בשבת. ולכן מותר להתחיל במלאכה בערב שבת סמוך לחשיכה, אף על פי שאין יכול לגומרה מבעוד יום ונגמרת מאליה בשבת, כגון לשרות דיו וסממנים במים, והם נשרים כל השבת, ולתת אגודות של פשתן לתנור כדי שיתלבנו, וליבון הוא מאבות מלאכות, וכן פשתן שהעלה מן המשרה ונותנה באור לייבשו, ויש בו איסור בישול.
The passage argues that hiring non-Jewish workers to perform labor on Shabbat could theoretically be permitted because the workers are hired on a contract basis independent of the Jew's authority, they work according to their own intention to rest on their own day rather than the Jewish Shabbat, and when the matter affects many people from Israel the concern about appearance of impropriety (chazaka) does not apply—yet acknowledges that the Sages prohibited it even in such cases due to concern that observers might mistakenly think the Jew himself hired them to work on Shabbat.
הנה לכאורה היה נראה להתיר מטעם שכ' מג"א סי' רמ"ד סק"ח דאיכא למסמך אהך דיעה שבי"ד סי' קמ"א ס"ד דברבי' ליכא חשדא וה"נ כיון שהדבר נוגע לכמה מאות נפשות מישראל ה"ל כרבים דלא שייך בהא חשדא והשתא כיון דמעיקר הדין ליכא איסורא דהרי קצץ עם האומן וגוי אדעתא דנפשי' עביד דאע"ג דהפועלים הבונים הם שכירי יום של האומן מ"מ הם אדעתא דהאומן אדוניהם עבידי ולא אדעתיה דישראל ולא נעשו שלוחו של ישראל כלל והאומן הרי קצץ עמו ואדעתא דנפשיה עביד וידוע שהאומן בעצמו אינו פועל בידיו שום פעולה רק מבקר לפרקים את הפועלים משרתים ומעיין ומשגיח עליהם: ועוד שאין הפועלים ברשות הישראל כלל והם עבדי אדוניהם האומן והוא משלחם בכל יום לאיזה בנין אשר ירצה ולאשר יהיה שמה רוחו ללכת לבנות ולנטות שמה יעסקו נמצא שאין השכירי יום פועלים ושלוחו של ישראל כלל והאומן הרי קצץ עמו ומצורף לזה עוד שהרי ידוע ששוכר את הפועל לעשות עמו ששה ימים בשבוע וכן משלמים לו שכר ששה ימים לשבוע וא"כ דעת הישראל שינוח ביום השביעי שבת קדש ואך רק הוא הפועל לדעת עצמו מחליף קדש בחול ונח ביום חגו נמצא מה שעובד בשבת לדעת עצמו עושה שינוח ביום א' אשר מפני צירוף כל הנ"ל הי' נראה בפשיטות שאין כאן איסור שבות מעיקר הדין רק ממה שאסרו חז"ל אפי' בקבולת מפני חשד הרואים שיאמרו ששכר הישראל את הפועלים בעצמם להדי' ומשלם להם שכר שבת להדי' וא"כ כיון דליכא אלא חשדא וברבים ליכא חשדא הי' נראה להתיר בפשיטות: