An etrog on the seventh day is forbidden the entire day, for it was set aside for all seven. Its prohibition begins from the first day even before one recited the blessing over it, since he set it aside for the mitzvah on the eve of the Yom Tov (Taz). And even if it became disqualified after he performed the mitzvah with it, it is nevertheless forbidden all seven days, for it was set aside for all seven. But on the eighth day, it is permitted. And even though during the twilight between the seventh and the eighth days it is still muktzah due to the doubt of the preceding day, nevertheless, we do not say in such a case: since it was set aside for the twilight, it is set aside for the entire day. And it is not similar to a sukkah, as will be explained in siman 667, which is forbidden even on the eighth day, for there it was set aside during twilight by means of an action, as he was obligated to eat there. This is not the case regarding an etrog, for it is only because of the preceding day (Tosafot Sukkah 12, beginning with "Ad").
אתרוג בשביעי – אסור כל היום, שהרי הוקצה לכל שבעה. ואיסורו מתחיל מיום הראשון גם קודם שבירך עליו, כיון שהקצהו למצוה בערב יום טוב (ט"ז). ואפילו נפסל אחר שעשה בו המצוה – מכל מקום אסור כל שבעת הימים, שהרי הוקצה על כל השבעה. אבל בשמיני – מותר. ואף על גב דבין השמשות שבין שביעי לשמיני – עדיין מוקצה הוא משום ספק יום שעבר, מכל מקום לא אמרינן בכי האי גוונא: מיגו דאתקצאי לבין השמשות – אתקצאי לכולי יומא. ולא דמי לסוכה, שיתבאר בסימן תרסז שאסורה גם בשמיני, דהתם אתקצאי בין השמשות על ידי מעשה, שהיה מחוייב לאכול שם. מה שאין כן באתרוג, דאינו אלא מפני היום שעבר (תוספות סוכה יב דיבור המתחיל "עד").