# How do you determine a chemical formula given the molecule's crystal structure?

How do you determine the chemical formula of a compound given its crystal structure?

• Presumably we have some other information as well? I mean, if I gave you a sample and told you it's a CsCl crystal structure, you can't really say much, since a good number of compounds assume the CsCl structure. – chipbuster Jan 9 '14 at 4:58
• Presumably, if you know the crystal structure, you know the unit cell? Count all the atoms in the unit cell taking into account fractional atoms (that is account for shared atoms) and adjust so the ratios are integers and you have the answer. – matt_black Jan 9 '14 at 23:23
• If you mean something more like "given its X-Ray diffraction pattern", you might want to edit the question to reflect that. – Aesin Jan 10 '14 at 1:17

Knowledge of the crystal structure implies that you are also able to describe the unit cell of the compound. To determine its formula, count all sorts of atoms inside the unit cell, also considering fractional atoms which belong to more than one unit cell. For example, an atom at the corner of the unit cell counts as $\frac{1}{8}$ atom because it is shared between 8 adjacent unit cells. Likewise, an atom at the edge of the unit cell counts as $\frac{1}{4}$ as it belongs to 4 unit cells etc. When you obtain fractional values for the atom numbers, multiply the values of all atoms with a certain number so that all values are integers.

Let us take sodium chloride ($\ce{NaCl}$) as a simple example. Its unit cell, which is shown below, contains $\ce{Na+}$ (violet) and $\ce{Cl-}$ ions (green). Counting the number of chloride ions in the unit cell gives

$$12 \cdot \frac{1}{4}+1=4 \ \ce{Cl-}$$

because there are 12 $\ce{Cl-}$ on the edges and 1 $\ce{Cl-}$ in the center of the unit cell. For the sodium ions, which are situated at the corners and on the faces (count as $\frac{1}{2}$ because they are shared between 2 cells) of the unit cell, we obtain

$$8 \cdot \frac{1}{8}+6 \cdot \frac{1}{2}=4 \ \ce{Na+}$$

The composition of the unit cell is therefore $\ce{Na4Cl4}$. Since the number of formula units per unit cell is 4, the formula of the compound is $\ce{NaCl}$.

For compounds in which the building blocks of the crystal structure are molecules, the procedure is essentially the same.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9044395,"math_prob":0.99359214,"size":2334,"snap":"2021-21-2021-25","text_gpt3_token_len":604,"char_repetition_ratio":0.15150215,"word_repetition_ratio":0.010050251,"special_character_ratio":0.26992288,"punctuation_ratio":0.08026031,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9970947,"pos_list":[0,1,2],"im_url_duplicate_count":[null,9,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-17T16:32:49Z\",\"WARC-Record-ID\":\"<urn:uuid:a6bd0ae5-db8b-4867-9a67-fc002479ff23>\",\"Content-Length\":\"150633\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:299447bd-b20a-4f7f-aade-0c133597638b>\",\"WARC-Concurrent-To\":\"<urn:uuid:e8ceb767-21fd-4747-9c2f-08dbd6fa9e0a>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://chemistry.stackexchange.com/questions/7720/how-do-you-determine-a-chemical-formula-given-the-molecules-crystal-structure?noredirect=1\",\"WARC-Payload-Digest\":\"sha1:YKUNVNKCOKXQ5DBIAMKVL67EQKOKTCUD\",\"WARC-Block-Digest\":\"sha1:KN6RGKAMLIVMONOJ3WG43BZXMOUEBKCN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243991258.68_warc_CC-MAIN-20210517150020-20210517180020-00429.warc.gz\"}"}