Title: Phosphorylation
Content:  ATP, the "high-energy" exchange medium in the cell, is synthesized in the mitochondrion by addition of a third phosphate group to ADP in a process referred to as oxidative phosphorylation. ATP is also synthesized by substrate-level phosphorylation during glycolysis. ATP is synthesized at the expense of solar energy by photophosphorylation in the chloroplasts of plant cells.
Title: Adenosine triphosphate
Content:  In plants, ATP is synthesized in the thylakoid membrane of the chloroplast. The process is called photophosphorylation. The "machinery" is similar to that in mitochondria except that light energy is used to pump protons across a membrane to produce a proton-motive force. ATP synthase then ensues exactly as in oxidative phosphorylation. Some of the ATP produced in the chloroplasts is consumed in the Calvin cycle, which produces triose sugars.
Title: Nucleoside triphosphate
Content:  ATP is the primary energy currency of the cell. Despite being synthesized through the metabolic pathway described above, it is primarily synthesized during both cellular respiration and photosynthesis by ATP synthase. ATP synthase couples the synthesis of ATP from ADP and phosphate with an electrochemical gradient generated by the pumping of protons through either the inner mitochondrial membrane (cellular respiration) or the thylakoid membrane (photosynthesis). This electrochemical gradient is necessary because the formation of ATP is energetically unfavourable. The hydrolysis of ATP to ADP and Pi proceeds as follows:  This reaction is energetically favourable and releases 30.5 kJ/mol of energy. In the cell, this reaction is often coupled with unfavourable reactions to provide the energy for them to proceed. GTP is occasionally used for energy-coupling in a similar manner.
Title: ATP synthase
Content: ADP + Pi + 2H+out ATP + H2O + 2H+in ATP synthase is a protein that catalyzes the formation of the energy storage molecule adenosine triphosphate (ATP) using adenosine diphosphate (ADP) and inorganic phosphate (Pi). It is classified under ligases as it changes ADP by the formation of P-O bond (phosphodiester bond). The overall reaction catalyzed by ATP synthase is:  The formation of ATP from ADP and Pi is energetically unfavorable and would normally proceed in the reverse direction. In order to drive this reaction forward, ATP synthase couples ATP synthesis during cellular respiration to an electrochemical gradient created by the difference in proton (H+) concentration across the inner mitochondrial membrane in eukaryotes or the plasma membrane in bacteria. During photosynthesis in plants, ATP is synthesized by ATP synthase using a proton gradient created in the thylakoid lumen through the thylakoid membrane and into the chloroplast stroma. Eukaryotic ATP synthases are F-ATPases, running "in reverse" for an ATPase. This article deals mainly with this type. An F-ATPase consists of two main subunits, FO and F1, which has a rotational motor mechanism allowing for ATP production. ATP synthase is a molecular machine.
Title: Abiogenesis
Content:   The mechanism of ATP synthesis involves a closed membrane in which the ATP synthase is embedded. The ATP is synthesized by the F1 subunit of ATP synthase by the binding change mechanism discovered by Paul Boyer. The energy required to release formed strongly-bound ATP has its origin in protons that move across the membrane. These protons have been set across the membrane during respiration or photosynthesis.
Title: Adenosine triphosphate
Content:  A typical intracellular concentration of ATP is hard to pin down, however, reports have shown there to be 1–10 μmol per gram of tissue in a variety of eukaryotes. The dephosphorylation of ATP and rephosphorylation of ADP and AMP occur repeatedly in the course of aerobic metabolism. ATP can be produced by a number of distinct cellular processes; the three main pathways in eukaryotes are (1) glycolysis, (2) the citric acid cycle/oxidative phosphorylation, and (3) beta-oxidation. The overall process of oxidizing glucose to carbon dioxide, the combination of pathways 1 and 2, known as cellular respiration, produces about 30 equivalents of ATP from each molecule of glucose. ATP production by a non-photosynthetic aerobic eukaryote occurs mainly in the mitochondria, which comprise nearly 25% of the volume of a typical cell.
Title: Bioenergetics
Content:  reactions take place in enzyme complexes situated within the mitochondrial membrane. These redox reactions transfer electrons "down" the electron transport chain, which is coupled to the proton motive force. This difference in proton concentration between the mitochondrial matrix and inner membrane space is used to drive ATP synthesis via ATP synthase. ; Photosynthesis, another major bioenergetic process, is the metabolic pathway used by plants in which solar energy is used to synthesize glucose from carbon dioxide and water. This reaction takes place in the chloroplast. After glucose is synthesized, the plant cell can undergo photophosphorylation to produce ATP. Human Vitamin D production is another form of photosynthesis resulting in ATP production. 
Title: ATPase
Content:  The ATP synthase of mitochondria and chloroplasts is an anabolic enzyme that harnesses the energy of a transmembrane proton gradient as an energy source for adding an inorganic phosphate group to a molecule of adenosine diphosphate (ADP) to form a molecule of adenosine triphosphate (ATP). This enzyme works when a proton moves down the concentration gradient, giving the enzyme a spinning motion. This unique spinning motion bonds ADP and P together to create ATP. ATP synthase can also function in reverse, that is, use energy released by ATP hydrolysis to pump protons against their electrochemical gradient.
Title: ATP synthase
Content:  Like other enzymes, the activity of F1FO ATP synthase is reversible. Large-enough quantities of ATP cause it to create a transmembrane proton gradient, this is used by fermenting bacteria that do not have an electron transport chain, but rather hydrolyze ATP to make a proton gradient, which they use to drive flagella and the transport of nutrients into the cell. In respiring bacteria under physiological conditions, ATP synthase, in general, runs in the opposite direction, creating ATP while using the proton motive force created by the electron transport chain as a source of energy. The overall process of creating energy in this fashion is termed oxidative phosphorylation. The same process takes place in the mitochondria, where ATP synthase is located in the inner mitochondrial membrane and the F1-part projects into the mitochondrial matrix. The consumption of ATP by ATP-synthase pumps proton cations into the matrix.
Title: Metabolism
Content:  In oxidative phosphorylation, the electrons removed from organic molecules in areas such as the citric acid cycle are transferred to oxygen and the energy released is used to make ATP. This is done in eukaryotes by a series of proteins in the membranes of mitochondria called the electron transport chain. In prokaryotes, these proteins are found in the cell's inner membrane. These proteins use the energy released by oxygen as it receives electrons from reduced molecules like NADH to pump protons across a membrane. Pumping protons out of the mitochondria creates a proton concentration difference across the membrane and generates an electrochemical gradient. This force drives protons back into the mitochondrion through the base of an enzyme called ATP synthase. The flow of protons makes the stalk subunit rotate, causing the active site of the synthase domain to change shape and phosphorylate adenosine diphosphate – turning it into ATP.

Question: where does the formation of atp take place?
Answer: plasma membrane in bacteria.
inner mitochondrial membrane.
thylakoid membrane.
mitochondrial membrane in eukaryotes.