Ulnar nerve entrapment is typically diagnosed through a physical exam and imaging tests such as X-rays or MRI. A nerve conduction study may also be performed to evaluate nerve function.