Renal physiology
Renal physiology (Latin rēnēs, "kidneys") is the study of the physiology of the kidney. This encompasses all functions of the kidney, including maintenance of acid-base balance; regulation of fluid balance; regulation of sodium, potassium, and other electrolytes; clearance of toxins; absorption of glucose, amino acids, and other small molecules;  regulation of blood pressure; production of various hormones, such as erythropoietin; and activation of vitamin D.
Much of renal physiology is studied at the level of the nephron, the smallest functional unit of the kidney. Each nephron begins with a filtration component that filters the blood entering the kidney. This filtrate then flows along the length of the nephron, which is a tubular structure lined by a single layer of specialized cells and surrounded by capillaries. The major functions of these lining cells are the reabsorption of water and small molecules from the filtrate into the blood, and the secretion of wastes from the blood into the urine.
Proper function of the kidney requires that it receives and adequately filters blood. This is performed at the microscopic level by many hundreds of thousands of filtration units called renal corpuscles, each of which is composed of a glomerulus and a Bowmans capsule. A global assessment of renal function is often ascertained by estimating the rate of filtration, called the glomerular filtration rate (GFR).

Formation of urine
The kidneys ability to perform many of its functions depends on the three fundamental functions of filtration, reabsorption, and secretion, whose sum is called renal clearance or renal excretion.  That is:

Urinary excretion rate = Filtration rate – Reabsorption rate + Secretion rateAlthough the strictest sense of the word excretion with respect to the urinary system is urination itself, renal clearance is also conventionally called excretion (for example, in the set term fractional excretion of sodium).

Filtration
The blood is filtered by nephrons, the functional units of the kidney. Each nephron begins in a renal corpuscle, which is composed of a glomerulus enclosed in a Bowmans capsule. Cells, proteins, and other large molecules are filtered out of the glomerulus by a process of ultrafiltration, leaving an ultrafiltrate that resembles plasma (except that the ultrafiltrate has negligible plasma proteins) to enter Bowmans space. Filtration is driven by Starling forces.

The ultrafiltrate is passed through, in turn, the proximal convoluted tubule, the loop of Henle, the distal convoluted tubule, and a series of collecting ducts to form urine.

Reabsorption
Tubular reabsorption is the process by which solutes and water are removed from the tubular fluid and transported into the blood. It is called reabsorption (and not absorption) both because these substances have already been absorbed once (particularly in the intestines) and because the body is reclaiming them from a postglomerular fluid stream that is well on its way to becoming urine (that is, they will soon be lost to the urine unless they are reclaimed).
Reabsorption is a two-step process beginning with the active or passive extraction of substances from the tubule fluid into the renal interstitium (the connective tissue that surrounds the nephrons), and then the transport of these substances from the interstitium into the bloodstream. These transport processes are driven by Starling forces, diffusion, and active transport.

Indirect reabsorption
In some cases, reabsorption is indirect. For example, bicarbonate (HCO3−) does not have a transporter, so its reabsorption involves a series of reactions in the tubule lumen and tubular epithelium. It begins with the active secretion of a hydrogen ion (H+) into the tubule fluid via a Na/H exchanger:

In the lumen
The H+ combines with HCO3− to form carbonic acid (H2CO3)
Luminal carbonic anhydrase enzymatically converts H2CO3 into H2O and CO2
CO2 freely diffuses into the cell
In the epithelial cell
Cytoplasmic carbonic anhydrase converts the CO2 and H2O (which is abundant in the cell) into H2CO3
H2CO3 readily dissociates into H+ and HCO3−
HCO3− is facilitated out of the cells basolateral membrane

Influence of hormones
Some key regulatory hormones for reabsorption include:

aldosterone, which stimulates active sodium reabsorption (and water as a result)
antidiuretic hormone, which stimulates passive water reabsorptionBoth hormones exert their effects principally on the collecting ducts.
Tubular secretion occurs simultaneously during reabsorption of filtrate. Substances, generally produced by body or the by-products of cell metabolism that can become toxic in high concentration, and some drugs (if taken). These all are secreted into the lumen of renal tubule. Tubular secretion can be either active or passive or co-transport.
Substances mainly secreted into renal tubule are; H+, K+, NH3, urea, creatinine, histamine and drugs like penicillin. 
Tubular secretion occurs at Proximal Convoluted Tubule (PCT) and Distal Convoluted Tubule (DCT); for example, at proximal convoluted tubule, potassium is secreted by means of sodium-potassium pump, hydrogen ion is secreted by means of active transport and co-transport, i.e. antiporter, and ammonia diffuses into renal tubule.

Other functions
Hormone secretion
The kidneys secrete a variety of hormones, including erythropoietin, calcitriol, and renin. Erythropoietin is released in response to hypoxia (low levels of oxygen at tissue level) in the renal circulation. It stimulates erythropoiesis (production of red blood cells) in the bone marrow. Calcitriol, the activated form of vitamin D, promotes intestinal absorption of calcium and the renal reabsorption of phosphate.  Renin is an enzyme which regulates angiotensin and aldosterone levels.

Maintaining homeostasis
The kidney is responsible for maintaining a balance of the following substances:

The body is very sensitive to its pH. Outside the range of pH that is compatible with life, proteins are denatured and digested, enzymes lose their ability to function, and the body is unable to sustain itself. The kidneys maintain acid-base homeostasis by regulating the pH of the blood plasma. Gains and losses of acid and base must be balanced. Acids are divided into "volatile acids" and "nonvolatile acids". See also titratable acid.
The major homeostatic control point for maintaining this stable balance is renal excretion.  The kidney is directed to excrete or retain sodium via the action of aldosterone, antidiuretic hormone (ADH, or vasopressin), atrial natriuretic peptide (ANP), and other hormones. Abnormal ranges of the fractional excretion of sodium can imply acute tubular necrosis or glomerular dysfunction.

Acid-base
Two organ systems, the kidneys and lungs, maintain acid-base homeostasis, which is the maintenance of pH around a relatively stable value. The lungs contribute to acid-base homeostasis by regulating carbon dioxide (CO2) concentration.  The kidneys have two very important roles in maintaining the acid-base balance: to reabsorb and regenerate bicarbonate from urine, and to excrete hydrogen ions and fixed acids (anions of acids) into urine.

Osmolality
The kidneys help maintain the water and salt level of the body. Any significant rise in plasma osmolality is detected by the hypothalamus, which communicates directly with the posterior pituitary gland. An increase in osmolality causes the gland to secrete antidiuretic hormone (ADH), resulting in water reabsorption by the kidney and an increase in urine concentration. The two factors work together to return the plasma osmolality to its normal levels.
ADH binds to principal cells in the collecting duct that translocate aquaporins to the membrane, allowing water to leave the normally impermeable membrane and be reabsorbed into the body by the vasa recta, thus increasing the plasma volume of the body.
There are two systems that create a hyperosmotic medulla and thus increase the body plasma volume: Urea recycling and the single effect.
Urea is usually excreted as a waste product from the kidneys. However, when plasma blood volume is low and ADH is released the aquaporins that are opened are also permeable to urea. This allows urea to leave the collecting duct into the medulla, creating a hyperosmotic solution that "attracts" water. Urea can then re-enter the nephron and be excreted or recycled again depending on whether ADH is still present or not.
The single effect describes the fact that the ascending thick limb of the loop of Henle is not permeable to water but is permeable to sodium chloride. This allows for a countercurrent exchange system whereby the medulla becomes increasingly concentrated, but at the same time setting up an osmotic gradient for water to follow should the aquaporins of the collecting duct be opened by ADH.

Blood pressure
Although the kidney cannot directly sense blood, long-term regulation of blood pressure predominantly depends upon the kidney. This primarily occurs through maintenance of the extracellular fluid compartment, the size of which depends on the plasma sodium concentration. Renin is the first in a series of important chemical messengers that make up the renin–angiotensin system. Changes in renin ultimately alter the output of this system, principally the hormones angiotensin II and aldosterone. Each hormone acts via multiple mechanisms, but both increase the kidneys absorption of sodium chloride, thereby expanding the extracellular fluid compartment and raising blood pressure. When renin levels are elevated, the concentrations of angiotensin II and aldosterone increase, leading to increased sodium chloride reabsorption, expansion of the extracellular fluid compartment, and an increase in blood pressure. Conversely, when renin levels are low, angiotensin II and aldosterone levels decrease, contracting the extracellular fluid compartment, and decreasing blood pressure.

Glucose formation
The kidney in humans is capable of producing glucose from lactate, glycerol and glutamine. The kidney is responsible for about half of the total gluconeogenesis in fasting humans. The regulation of glucose production in the kidney is achieved by action of insulin, catecholamines and other hormones. Renal gluconeogenesis takes place in the renal cortex. The renal medulla is incapable of producing glucose due to absence of necessary enzymes.

Measurement of renal function

A simple means of estimating renal function is to measure pH, blood urea nitrogen, creatinine, and basic electrolytes (including sodium, potassium, chloride, and bicarbonate). As the kidney is the most important organ in controlling these values, any derangement in these values could suggest renal impairment.
There are several more formal tests and ratios involved in estimating renal function:


== References ==