The core ruling is that one who eats meat must wait six hours before eating dairy, codified by Shulchan Arukh, Yoreh De'ah 89:1-2 and Kitzur Shulchan Arukh 46:9-11, both of which also require removing any meat caught between the teeth even after the interval has passed, and both apply the same waiting requirement to one who merely chewed meat for a child.
This six-hour standard traces to Mishneh Torah, Forbidden Foods 9:28, which defines the wait as the length of time between one meal and another, roughly six hours, because meat lodged between the teeth is not removed by mere wiping; the Tur (Yoreh De'ah 89) gives the same reasoning, explaining that meat releases fat and draws out taste for a long time, so even where no meat remains between the teeth the interval is still required.
Chullin 105a is the Talmudic source behind this entire discussion, recording Rav Chisda's teaching that one who ate meat may not eat cheese immediately, while one who ate cheese may eat meat without delay, and raising the question of meat lodged between the teeth as the reason for the stringency; Chiddushei Ketav Sofer (Chullin 104b) analyzes this sugya further, distinguishing the view of Tosafot, the Rif, and the Rambam that wiping and rinsing do not suffice after meat before dairy, as opposed to the reverse order.
Arukh HaShulchan (Yoreh De'ah 89:6) notes that the six-hour figure is not explicit in the Gemara itself, which only requires waiting from one meal to the next, and that the Rambam, the Rashba, the Rosh, and the Tur interpret this as six hours, while Tosafot, the Mordechai citing the Ravyah, and Hagahot Asheri understand it literally as moving from one meal to a new one, permitting dairy once the table is cleared and Birkat Hamazon is recited; some hold a single hour suffices, counted as one twenty-fourth of a day, but only together with Birkat Hamazon.
Kaf HaChaim (Yoreh De'ah 89:2) likewise lays out the two reasons behind the wait—the Tur's concern that meat continues releasing taste, and the Rambam's concern for meat caught between the teeth—and states that the six hours are fixed clock hours, a quarter of a day and night, equally in summer and winter, concluding that the Shulchan Arukh rules stringently according to both reasons.
Beit Yosef (Yoreh De'ah 89) brings the Rambam's position that one who eats cheese and afterward poultry needs neither wiping, rinsing, nor washing of hands, since poultry and cheese may be eaten together casually, contrasting this with the Ramban's view, cited by the Rashba and the Ran, that even poultry followed by cheese is permitted in that order—underscoring that the stringent waiting period applies specifically to meat eaten first, before dairy.
Later authorities extend and qualify this halacha in various directions: Kitzur Shulchan Arukh Yalkut Yosef, Orach Chaim 494:21 insists on the six-hour wait even on Shavuot, rejecting any leniency for that day, while Darkhei Teshuvah (Yoreh Deah 89:3) cites the Neta Shorek's view that this six-hour wait applies even to the liquid left over from milk, since rabbinically it retains the status of dairy; Darkhei Teshuvah (Yoreh Deah 89:20) records that the Chochmat Adam permits a somewhat lenient approach for a moderately ill person, allowing meat to be eaten after only an hour's wait, cleaning the teeth, and reciting Birkat Hamazon; and Darkhei Teshuvah (Yoreh Deah 89:6) discusses whether the six hours are fixed or seasonal hours and records a custom in some places of waiting only about three hours.
Nitei Gavriel, Shavuos, perek 31 rules that the six-hour count begins from the start of the meat meal even if eating continues afterward, that dairy may then be eaten once six hours have passed and Birkat Hamazon has been recited, and that a young child who has reached the age of chinuch should likewise be trained to wait.
Revavos Ephraim 8:336 rules that even someone who ate meat and then vomited must still wait the full six hours before eating dairy, because the throat has already benefited from the meat and some meat may remain between the teeth.
On the question of eating dairy first and then meat, Mishneh Torah, Forbidden Foods 9:26 permits eating meat immediately after cheese or milk, requiring only that the hands be washed and the mouth wiped between the two, using bread or fruit that can be chewed and swallowed or spit out; Mishnah Berurah 494:16 and Mishnah Berurah 173:2 likewise discuss the wiping, rinsing, and use of a different tablecloth required when moving from dairy to meat, rather than a lengthy time-based wait, while Shaarei Halacha uMinhag, Yoreh Deah 11 and Shaarei Halacha uMinhag, Yoreh Deah 9 describe the general custom of waiting about one hour after dairy, even milk and butter, before eating meat, and not eating both within the same meal.
Revavos Ephraim 5:513 rules that dairy may not be eaten immediately after meat or poultry, noting that customs vary, with some communities in parts of Western Europe waiting three hours while most places wait six hours.
Divrei Yatziv Likutim 69 states that the meticulous practice is to wait six hours after eating meat, affirming this as the proper approach, while noting that a shorter interval mentioned in the sources is attributed only to Mar Ukva, who described his own practice as modest compared to his father's.
Igros Kodesh letter 7704 questions the basis for a custom of waiting only half an hour after dairy before eating meat, noting that the language cited for that custom may point to an even shorter interval, while also addressing a view requiring an hour or more tied to digestion, and that question is not fully resolved within the passage.