Question: is buch masculine or feminine?
Answer: Unfortunately, there is no logical explanation or rule why, for example, “der Stuhl” (chair) is masculine, “die Tasche” (bag) is feminine, and “das Buch” (book) is neuter. So, the only way to learn the genders of nouns is to treat their articles as a component of the word.