A urine pH test can tell your doctor how acidic or basic (alkaline) your urine is using a simple, painless urine test. Many diseases, your diet, and the medicines you take can affect how acidic or basic your urine is.